selinux: Print 'sclass' as string when unrecognized netlink message occurs
authorMarek Milkovic <mmilkovi@redhat.com>
Thu, 4 Jun 2015 20:22:16 +0000 (16:22 -0400)
committerPaul Moore <pmoore@redhat.com>
Thu, 4 Jun 2015 20:22:16 +0000 (16:22 -0400)
commitcded3fffbeab777e6ad2ec05d4a3b62c5caca0f3
tree06a02c4bf6f846d9c9cf0c5ad4fb2f02779687af
parente6e29a4eae335059d2cc44ac543de7556ff7ac09
selinux: Print 'sclass' as string when unrecognized netlink message occurs

This prints the 'sclass' field as string instead of index in unrecognized netlink message.
The textual representation makes it easier to distinguish the right class.

Signed-off-by: Marek Milkovic <mmilkovi@redhat.com>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
[PM: 80-char width fixes]
Signed-off-by: Paul Moore <pmoore@redhat.com>
security/selinux/hooks.c