diff options
author | Jan Kara <jack@suse.cz> | 2015-06-02 17:08:29 +0200 |
---|---|---|
committer | Paul Moore <pmoore@redhat.com> | 2015-06-11 21:49:54 +0200 |
commit | 0b08c5e59441d08ab4b5e72afefd5cd98a4d83df (patch) | |
tree | ad90ee6ce9a6f59f566afbbeeee02c655aef13b6 /security/lsm_audit.c | |
parent | audit: obsolete audit_context check is removed in audit_filter_rules() (diff) | |
download | linux-0b08c5e59441d08ab4b5e72afefd5cd98a4d83df.tar.xz linux-0b08c5e59441d08ab4b5e72afefd5cd98a4d83df.zip |
audit: Fix check of return value of strnlen_user()
strnlen_user() returns 0 when it hits fault, not -1. Fix the test in
audit_log_single_execve_arg(). Luckily this shouldn't ever happen unless
there's a kernel bug so it's mostly a cosmetic fix.
CC: Paul Moore <pmoore@redhat.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Paul Moore <pmoore@redhat.com>
Diffstat (limited to 'security/lsm_audit.c')
0 files changed, 0 insertions, 0 deletions