AUPARSE_SET_ESCAPE_MODE(3)
π auparse_set_escape_mode β choose escape method π
okay bestie, welcome to the auparse_set_escape_mode page from the Linux Audit API, section 3 of your friendly neighborhood manual. this one is short and sweet but it matters SO much for how your interpreted text comes out the other side. let's get into it π«Ά
β¨ SYNOPSIS β¨
#include <auparse.h>
void auparse_set_escape_mode(auparse_state_t *au,auparse_esc_t"mode);"
πΈ DESCRIPTION πΈ
so like, auparse_set_escape_mode is the function you call to pick which escaping method gets used when the library outputs interpreted text. it's giving "vibe check for your output," no cap. the choices for the mode variable are:
AUPARSE_ESC_RAWβ literally no escaping of any kind. zero. none. raw as it gets πAUPARSE_ESC_TTYβ escapes TTY control characters so they're harmless to display on a terminal. when any control character shows up, it gets displayed as octal numbers. this is the default mode that the auparse library is initialized with, so if you don't touch anything, this is what you get πAUPARSE_ESC_SHELLβ besides escaping control characters, this one also escapes some characters that can cause problems when you're doing shell scripting. escaped control characters get displayed as octal numbers, and the other escaped characters get proceeded with a backslash. the extra characters it escapes are:",',`,$,\AUPARSE_ESC_SHELL_QUOTEβ similar toAUPARSE_ESC_SHELLbut it expands the character set to include shell operators. escaped control characters are displayed as octal numbers, other escaped characters are proceeded with a backslash, and the additional characters it escapes include:;,',",`,#,$,&,*,?,[,],<,>,{,},\
bestie note: the mode you pick here is the whole personality of your output. AUPARSE_ESC_TTY is the one you get for free, so don't be surprised when that's what you're working with unless you change it π
π RETURN VALUE π
None β she returns nothing, she just does the thing. iconic behavior honestly β¨
π¦ SEE ALSO π¦
π AUTHOR π
Steve Grubb
and that's the whole page, bestie! Red Hat, July 2016, section 3 of the Linux Audit API β go forth and escape responsibly π«Άπβ¨
π¦ where this page comes from
- alpine 3.23: audit-doc 4.1.2-r2 Β· LGPL-2.1-or-later
- alpine 3.24: audit-doc 4.1.2-r6 Β· LGPL-2.1-or-later
- arch rolling: audit 4.2.1-1 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- centos-stream 10: audit-libs-devel 4.2.1-3.el10 Β· LGPL-2.0-or-later
- fedora 43: audit-libs-devel 4.1.1-2.fc43 Β· LGPL-2.0-or-later
- fedora 43: audit-libs-devel 4.1.1-2.fc43 Β· LGPL-2.0-or-later
- fedora 43: audit-libs-devel 4.2.1-1.fc43 Β· LGPL-2.0-or-later
- fedora 43: audit-libs-devel 4.2.1-1.fc43 Β· LGPL-2.0-or-later
- fedora 44: audit-libs-devel 4.1.4-1.fc44 Β· LGPL-2.0-or-later
- fedora 44: audit-libs-devel 4.1.4-1.fc44 Β· LGPL-2.0-or-later
- fedora 44: audit-libs-devel 4.2.1-1.fc44 Β· LGPL-2.0-or-later
- fedora 44: audit-libs-devel 4.2.1-1.fc44 Β· LGPL-2.0-or-later
- nixpkgs unstable: audit 4.2.1
- ubuntu resolute: libauparse-dev 1:4.1.2-1build1 Β· GPL-2.0-only
- ubuntu resolute: libauparse-dev 1:4.1.2-1ubuntu0.1 Β· GPL-2.0-only
- ubuntu stonking: libauparse-dev 1:4.1.2-1ubuntu1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms