AUDIT_UPDATE_WATCH_PERMS(3)
π AUDIT_UPDATE_WATCH_PERMS π
okay bestie, gather round, because today we're talking about audit_update_watch_perms from the Linux Audit API β it's the little function that updates the permissions field of a watch command. lowkey iconic, highkey essential. β¨
β¨ SYNOPSIS β¨
#include <libaudit.h>
int audit_update_watch_perms(struct audit_rule_data *rule,int"perms);"
(yes, that last line is exactly how it shows up in the original β we do not touch the lore, we only report it π«Ά)
πΈ DESCRIPTION πΈ
So here's the tea: audit_update_watch_perms adds the permission checks to a watch command that is being built. That's it, that's the whole job, and it does it flawlessly. π
The perms you hand it? They're a bitwise or'ing of these four besties right here:
AUDIT_PERM_EXECAUDIT_PERM_WRITEAUDIT_PERM_READAUDIT_PERM_ATTR
Stack 'em with | and let it cook. π₯
π RETURN VALUE π
- Returns a number < 0 if an error occurs π
- otherwise, 0 for success π
periodt.
π¦ SEE ALSO π¦
π AUTHOR π
Steve Grubb. a real one, no cap. π«Ά
Red Hat Β· Feb 2007 Β· AUDIT_UPDATE_WATCH_PERMS(3)
and that's the whole page bestie, mwah π slay, go update those watch perms 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: libaudit-dev 1:4.1.2-1build1 Β· GPL-2.0-only
- ubuntu resolute: libaudit-dev 1:4.1.2-1ubuntu0.1 Β· GPL-2.0-only
- ubuntu stonking: libaudit-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