linux-audit / audit-kernel

GitHub mirror of the Linux Kernel's audit repository
https://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/audit.git
Other
140 stars 37 forks source link

RFE: switch to consistent boolean use of AUDIT_OFF #86

Closed rgbriggs closed 6 years ago

rgbriggs commented 6 years ago

Most uses of audit_enabled don't care about the distinction between AUDIT_ON and AUDIT_LOCKED, so using audit_enabled as a boolean makes more sense and is easier to read. Most uses of audit_enabled treat it as a boolean, so switch the remaining AUDIT_OFF usage to simply use audit_enabled as a boolean where applicable.

rgbriggs commented 6 years ago

Posted v1 patch upstream https://www.redhat.com/archives/linux-audit/2018-May/msg00210.html https://lkml.org/lkml/2018/5/31/548

rgbriggs commented 6 years ago

Posted v2 patch upstream (linux-audit, lkml, netdev, netfilter-devel, lsm): https://www.redhat.com/archives/linux-audit/2018-June/msg00045.html https://lkml.org/lkml/2018/6/5/1106

rgbriggs commented 6 years ago

Merged f785959