selinux: print leading 0x on ioctlcmd audits
authorWilliam Roberts <william.c.roberts@intel.com>
Mon, 8 Aug 2016 17:08:34 +0000 (13:08 -0400)
committerPaul Moore <paul@paul-moore.com>
Mon, 8 Aug 2016 17:08:34 +0000 (13:08 -0400)
commit8b31f456c72e53ee97474a538bcd91bfb1b93fb7
treea87f9203cde7d38af6009c8198277a1335dbf8b2
parent1a93a6eac32a2853177f10e274b9b761b42356eb
selinux: print leading 0x on ioctlcmd audits

ioctlcmd is currently printing hex numbers, but their is no leading
0x. Thus things like ioctlcmd=1234 are misleading, as the base is
not evident.

Correct this by adding 0x as a prefix, so ioctlcmd=1234 becomes
ioctlcmd=0x1234.

Signed-off-by: William Roberts <william.c.roberts@intel.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/lsm_audit.c