OS Manuals

/usr/bin/auditctl

User space tools for kernel auditing

From audit 4.2.1-r4 (os), captured 2026-11-05 by running auditctl --help (exit 0). permalink

usage: auditctl [options]
    -a <l,a>                          Append rule to end of <l>ist with <a>ction
    -A <l,a>                          Add rule at beginning of <l>ist with <a>ction
    -b <backlog>                      Set max number of outstanding audit buffers
                                      allowed Default=64
    -c                                Continue through errors in rules
    -C f=f                            Compare collected fields if available:
                                      Field name, operator(=,!=), field name
    -d <l,a>                          Delete rule from <l>ist with <a>ction
                                      l=task,exit,user,exclude,filesystem
                                      a=never,always
    -D                                Delete all rules and watches
    -e [0..2]                         Set enabled flag
    -f [0..2]                         Set failure flag
                                      0=silent 1=printk 2=panic
    -F f=v                            Build rule: field name, operator(=,!=,<,>,<=,
                                      >=,&,&=) value
    -h                                Help
    -i                                Ignore errors when reading rules from file
    -k <key>                          Set filter key on audit rule
    -l                                List rules
    -m text                           Send a user-space message
    -p [r|w|x|a]                      Set permissions filter on watch
                                      r=read, w=write, x=execute, a=attribute
    -q <mount,subtree>                make subtree part of mount point's dir watches
    -r <rate>                         Set limit in messages/sec (0=none)
    -R <file>                         read rules from file
    -s                                Report status
    -S syscall                        Build rule: syscall name or number
    --signal <signal>                 Send the specified signal to the daemon
    -t                                Trim directory watches
    -v                                Version
    -w <path>                         Insert watch at <path>
    -W <path>                         Remove watch at <path>
    --loginuid-immutable              Make loginuids unchangeable once set
    --backlog_wait_time               Set the kernel backlog_wait_time
    --reset-lost                      Reset the lost record counter
    --reset_backlog_wait_time_actual  Reset the actual backlog wait time counter
Options (30)
OptionDescriptionSource
-a lAppend rule to end of <l>ist with <a>ctionhelp
-A lAdd rule at beginning of <l>ist with <a>ctionhelp
-b backlogSet max number of outstanding audit buffers allowed Default=64help
-cContinue loading rules in spite of an error.help + man
-C f=fCompare collected fields if available: Field name, operator(=,!=), field namehelp
-d lDelete rule from <l>ist with <a>ction l=task,exit,user,exclude,filesystem a=never,alwayshelp
-DDelete all rules and watches.help + man
-e 0..2Set enabled flaghelp
-f 0..2Set failure flag 0=silent 1=printk 2=panichelp
-F f=vBuild rule: field name, operator(=,!=,<,>,<=, >=,&,&=) valuehelp
-h, --helpHelphelp + man
-iWhen given by itself, ignore errors when reading rules from a file.help + man
-k keySet filter key on audit rulehelp
-lList all rules 1 per line.help + man
-m textSend a user-space messagehelp
-p r|w|x|aSet permissions filter on watch r=read, w=write, x=execute, a=attributehelp
-q mountmake subtree part of mount point's dir watcheshelp
-r rateSet limit in messages/sec (0=none)help
-R fileread rules from filehelp
-sReport the kernel's audit subsystem status.help + man
-S syscallBuild rule: syscall name or numberhelp
--signal signalSend the specified signal to the daemonhelp
-tTrim the subtrees after a mount command.help + man
-vPrint the version of auditctl.help + man
-w pathInsert watch at <path>help
-W pathRemove watch at <path>help
--loginuid-immutableThis option tells the kernel to make loginuids unchangeable once they are set.help + man
--backlog_wait_timeSet the kernel backlog_wait_timehelp
--reset-lostReset the lost record counter shown by the status command.help + man
--reset_backlog_wait_time_actualReset the actual backlog wait time counter shown by the status command.help + man
Examples (7) from the manual page, untested

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.