summaryrefslogtreecommitdiffstats
path: root/kernel/auditsc.c
diff options
context:
space:
mode:
authorRichard Guy Briggs <rgb@redhat.com>2014-12-23 13:02:04 -0500
committerPaul Moore <pmoore@redhat.com>2014-12-23 16:40:18 -0500
commit041d7b98ffe59c59fdd639931dea7d74f9aa9a59 (patch)
tree1655d8bc82a0fcbf4f1d4e118aa1b6daeed6f9e0 /kernel/auditsc.c
parent4a92843601ad0f5067f441d2f0dca55bbe18c076 (diff)
downloadlinux-041d7b98ffe59c59fdd639931dea7d74f9aa9a59.tar.gz
linux-041d7b98ffe59c59fdd639931dea7d74f9aa9a59.tar.bz2
linux-041d7b98ffe59c59fdd639931dea7d74f9aa9a59.zip
audit: restore AUDIT_LOGINUID unset ABI
A regression was caused by commit 780a7654cee8: audit: Make testing for a valid loginuid explicit. (which in turn attempted to fix a regression caused by e1760bd) When audit_krule_to_data() fills in the rules to get a listing, there was a missing clause to convert back from AUDIT_LOGINUID_SET to AUDIT_LOGINUID. This broke userspace by not returning the same information that was sent and expected. The rule: auditctl -a exit,never -F auid=-1 gives: auditctl -l LIST_RULES: exit,never f24=0 syscall=all when it should give: LIST_RULES: exit,never auid=-1 (0xffffffff) syscall=all Tag it so that it is reported the same way it was set. Create a new private flags audit_krule field (pflags) to store it that won't interact with the public one from the API. Cc: stable@vger.kernel.org # v3.10-rc1+ Signed-off-by: Richard Guy Briggs <rgb@redhat.com> Signed-off-by: Paul Moore <pmoore@redhat.com>
Diffstat (limited to 'kernel/auditsc.c')
0 files changed, 0 insertions, 0 deletions