Closed pcmoore closed 5 years ago
Since all AUDITSUBJ and AUDITOBJ fields are text fields, I would assume that equal/not-equal are the only two that make sense. Other text fields for which this applies would be:
Exceptions are AUDIT{SUBJ{CLR,SEN},OBJLEV{LOW,HIGH} for which a range is implemented.
Others for which only equal/not-equal apply would be:
Bitwise ops should be valid for AUDIT_ARG*, and potentially AUDIT_PERS and AUDIT_DEVMINOR.
The remaining should be equal/not-equal and any greater or less than.
There is some coverage in userspace lib/libaudit.c:audit_rule_fieldpair_data(), but not comprehensive.
2019-05-06: Posted v1: https://www.redhat.com/archives/linux-audit/2019-May/msg00002.html
2019-05-22: Posted v3: https://www.redhat.com/archives/linux-audit/2019-May/msg00036.html
Staged in audit/next: ecc68904a3e5 ("audit: re-structure audit field valid checks")
Merged for v5.3-rc1 in 61fc5771f5e729a2ce235af42f69c8506725e84a
Please close. Upstream in Linux 5.3 4d856f72c10e
From an email on the linux-audit mailing list from @pcmoore: