AUDITCTL(2)
π AUDITCTL(2) β like, the system calls manual, bestie
okay so this is auditctl(2) out of the System Calls Manual, and ngl it's a short one but it's got lore π
β¨ NAME β¨
auditctl β configure system audit parameters π
π¦ SYNOPSIS π¦
#include <bsm/audit.h>
int
auditctl(const char *path);
πΈ DESCRIPTION πΈ
so the auditctl() system call literally just tells the kernel "hey bestie, open a new audit trail log file for me" π and it's giving gatekept because it requires an appropriate privilege β so no, you can't just rock up without clearance, the vibe check is strict π
one thing to be super clear on: auditctl() opens new files, but auditon(2) is what you use to disable the audit log. so don't come for auditctl() for that, it's not its job, it's not its era, periodt π
π RETURN VALUES π
0β slay, it worked, successful completion β¨-1β not slay π, and the global variableerrnogets set to indicate the error so you know exactly what went wrong
π₯ ERRORS π₯
the auditctl() system call will fail if:
[EINVAL]β The path is invalid. it's giving "that's not a path, that's a cry for help" π[EPERM]β The process does not have sufficient permission to complete the operation. no privilege, no service, sorry babe π«Ά
π SEE ALSO π
go read those too, iykyk π
π HISTORY π
the OpenBSM implementation was created by McAfee Research (the security division of McAfee Inc., not to be confused with anything else) under contract to Apple Computer Inc. in 2004 π and it was subsequently adopted by the TrustedBSD Project as the foundation for the OpenBSM distribution. iconic lineage fr fr β
π§ AUTHORS π§
This software was created by McAfee Research, the security research division of McAfee, Inc., under contract to Apple Computer Inc. π
Additional authors include Wayne Salamon, Robert Watson, and SPARTA Inc. π«Ά
The Basic Security Module (BSM) interface to audit records and audit event stream format were defined by Sun Microsystems βοΈ
This manual page was written by Robert Watson <rwatson@FreeBSD.org> βοΈ
no cap, that's the whole page β short, sweet, and fully privileged π
mwah π this one shipped from Debian, dated April 19, 2005 β yeah she's a vintage icon, we stan a classic πβ¨
π¦ where this page comes from
- nixos 26.05: openbsm 1.1
- nixpkgs unstable: openbsm 1.1
- Copyright (c) 2005-2006 Robert N. M. Watson
- Copyright (c) 2008 Apple Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms