AUDIT_DELETE_RULE_DATA(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 ✨

okay so bestie, welcome to the AUDIT_DELETE_RULE_DATA(3) page from the Linux Audit API πŸ’– this one is about audit_delete_rule_data β€” literally delete an audit rule. periodt.

🌸 SYNOPSIS 🌸

#include <libaudit.h>

int audit_delete_rule_data(int fd, struct audit_rule_data *rule, int flags, int action);"

πŸ¦‹ DESCRIPTION πŸ¦‹

audit_delete_rule_data is used to delete rules that are currently loaded in the kernel. πŸ‘‘

The file descriptor is given in fd, and the rule description is in rule. πŸ’…

To delete a rule, you must set up the rules identical to the one being deleted. like, no cap, exact same setup or it's not gonna vibe. 😭

See audit_add_rule_data for flags and action definitions. 🫢

⭐ RETURN VALUE ⭐

The return value is <= 0 on error, otherwise it is the netlink sequence id number. ✨

This function can have any error that sendto would encounter. πŸ’€

🌈 SEE ALSO 🌈

πŸŽ€ AUTHOR πŸŽ€

Steve Grubb πŸ‘‘


and that's the whole vibe bestie! this page came from Red Hat, dated Oct 2006, and it's the AUDIT_DELETE_RULE_DATA(3) manual page. πŸ«ΆπŸ’–