Open cgzones opened 2 years ago
While the openat(2) open_how:flags
field is a 64-bit integer (the openat(2) flags field is 32-bits), the same flags are used across both:
This field specifies the file creation and file status flags to use when opening the file. All of the O_* flags defined for openat(2) are valid openat2() flag values.
Adding support for this is likely a matter of adding some syscall specific code to peek into the open_how
struct and inspect the flags
field. Of course some case will be needed to ensure that we avoid a TOCTOU issue, and the ugliness of that may mean this isn't something we can easily address. Further investigation is needed.
For open(2) and openat(2) one can filter by the flags used (e.g.
O_CREAT
):Please support filtering on the openat2 how structure flags, e.g.:
(Forwarded from https://github.com/linux-audit/audit-userspace/issues/282)