security: add ioctl specific auditing to lsm_audit
authorJeff Vander Stoep <jeffv@google.com>
Fri, 10 Jul 2015 21:19:55 +0000 (17:19 -0400)
committerStricted <info@stricted.net>
Fri, 20 Apr 2018 17:26:01 +0000 (19:26 +0200)
commita4a18acb079793d947875e7b6a3c33c2f183c759
treeae97b15bf679be60e3bab22d5a415d52fe02e81f
parentd97274d81f494b7f68593e7a12d869850aec6a31
security: add ioctl specific auditing to lsm_audit

(cherry pick from commit 671a2781ff01abf4fdc8904881fc3abd3a8279af)

Add information about ioctl calls to the LSM audit data. Log the
file path and command number.

Signed-off-by: Jeff Vander Stoep <jeffv@google.com>
Acked-by: Nick Kralevich <nnk@google.com>
[PM: subject line tweak]
Signed-off-by: Paul Moore <pmoore@redhat.com>
Bug: 22846070
Change-Id: I88a6ecdd59297a315a6fb9c82c0a798bdb6bafaa
include/linux/lsm_audit.h
security/lsm_audit.c