diff options
author | Eric Paris <eparis@redhat.com> | 2012-10-23 14:58:35 +0200 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2013-04-11 21:39:10 +0200 |
commit | ad395abece974e50cfd7ddd509a4faae8e238a40 (patch) | |
tree | 66a12a3d4a18a6cca40466462cf9737df0f9f0b7 /kernel/audit.h | |
parent | audit: use data= not msg= for AUDIT_USER_TTY messages (diff) | |
download | linux-ad395abece974e50cfd7ddd509a4faae8e238a40.tar.xz linux-ad395abece974e50cfd7ddd509a4faae8e238a40.zip |
Audit: do not print error when LSMs disabled
RHBZ: 785936
If the audit system collects a record about one process sending a signal
to another process it includes in that collection the 'secid' or 'an int
used to represet an LSM label.' If there is no LSM enabled it will
collect a 0. The problem is that when we attempt to print that record
we ask the LSM to convert the secid back to a string. Since there is no
LSM it returns EOPNOTSUPP.
Most code in the audit system checks if the secid is 0 and does not
print LSM info in that case. The signal information code however forgot
that check. Thus users will see a message in syslog indicating that
converting the sid to string failed. Add the right check.
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'kernel/audit.h')
0 files changed, 0 insertions, 0 deletions