AUDIT_REQUEST_SIGNAL_INFO(3)

πŸ“¦
version 4.2.1 Β· 2 versions
, in alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, fedora 43, fedora 44, nixpkgs unstable, ubuntu resolute, ubuntu stonking

πŸ’… NAME πŸ’…

audit_request_signal_info β€” bestie, this is the one that asks the kernel for signal info for the audit system 🫢


✨ SYNOPSIS ✨

#include <libaudit.h>

int audit_request_signal_info(intfd);"

(yes that's literally how it's written, no I did not edit it, we keep the originals exactly as they are okay πŸ’–)


πŸŽ€ DESCRIPTION πŸŽ€

okay so. audit_request_signal_info is the function that goes "hey kernel, pls send us the info about whoever sent this signal" and the kernel sends that info over to the audit daemon. that's the whole vibe. it's a request, the daemon is the one receiving. πŸ’Œ

and the signal info structure it's all about? iconic, here she is:

struct audit_sig_info {
        uid_t           uid;
        pid_t           pid;
        char            ctx[0];
};

real talk tho: this one is basically for audit daemons only. like, if you're writing a normal everyday program and you're eyeing this function? don't. it says it shouldn't be called by any other kind of program, and we respect that boundary fr fr 🚫✨


πŸ”₯ RETURN VALUE πŸ”₯

the return value is <= 0 when something goes wrong 😭 β€” anything in that zone is giving error energy.

otherwise? it hands you the netlink sequence id number and you're slaying πŸ‘‘

also heads up: this function can have any error that sendto would encounter. every single one. so don't be surprised. πŸ’€


🌸 SEE ALSO 🌸

go read those too, they're the supporting cast and they ate πŸ’…


πŸ‘‘ AUTHOR πŸ‘‘

Steve Grubb β€” the icon, the moment, the legend 🫢


lowkey reminder bestie: every detail above is exactly as the original gives it β€” nothing added, nothing skipped, no cap 🧚

that's the page, babe! brought to you by Red Hat, dated Feb 2007, and it's AUDIT_REQUEST_SIGNAL_INFO(3) β€” periodt πŸ’–βœ¨πŸŽ€