/
githubmirror
/
audit-userspace
Обзор
Документация
Войти
/
githubmirror
/
audit-userspace
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
docs/audit_value_needs_encoding.3
42 строки
1 KB
Steve Grubb
Clarify audit value encoding documentation
14 май 2026, 06:15
14 май 2026, 06:15
0d2bca5
Код
Авторство
О чём код?
.TH "AUDIT_VALUE_NEEDS_ENCODING" "3" "May 2026" "Red Hat" "Linux Audit API" .SH NAME audit_value_needs_encoding \- check a string to see if it needs encoding .SH "SYNOPSIS" .nf .B #include <libaudit.h> .PP .BI "int audit_value_needs_encoding(const char *" str ", unsigned int " size "); .fi .SH "DESCRIPTION" .BR audit_value_needs_encoding () checks .I size bytes from .I str to see if the value must be encoded before it is logged in an audit name/value field. Specifically, this function checks for a double-quote, any byte in the range 0x00 through 0x20, or any byte in the range 0x7F through 0xFF. The 0x00 through 0x20 range includes C0 control bytes and space. .PP .I str is the byte string to check. It does not have to be NUL-terminated and may contain embedded NUL bytes. .I size is the number of bytes to check from .IR str . If .I str is NULL, encoding is not needed. .SH "RETURN VALUE" The return value if encoding is needed is 1. If not needed is 0. .SH "SEE ALSO" .BR audit_encode_nv_string (3), .BR audit_encode_value (3). .SH AUTHOR Steve Grubb