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)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 11 Jun 2020 18:05:39 +0000 (19:05 +0100)
commitb122516be7a9cccceb48dc7ee6ff1717b39e6ae2
tree46f83be7acb1252cae460532f7b5f2ee263f8b39
parent68c46f7a2891110c582a94a807018d231e81eefe
selinux: Print 'sclass' as string when unrecognized netlink message occurs

commit cded3fffbeab777e6ad2ec05d4a3b62c5caca0f3 upstream.

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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
security/selinux/hooks.c