SELinux: define permissions for DCB netlink messages
commit599fde16508b7684f105f4c202a823b4afd4c8c7
authorEric Paris <eparis@redhat.com>
Thu, 16 Dec 2010 16:46:51 +0000 (16 11:46 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Feb 2011 23:37:11 +0000 (17 15:37 -0800)
tree926690a03e1d8b7e3a28eb28cfcad505c242dbc9
parent25e442e2eacdc1bc8fadcd895aa40aaaf66164d3
SELinux: define permissions for DCB netlink messages

commit 350e4f31e0eaf56dfc3b328d24a11bdf42a41fb8 upstream.

Commit 2f90b865 added two new netlink message types to the netlink route
socket.  SELinux has hooks to define if netlink messages are allowed to
be sent or received, but it did not know about these two new message
types.  By default we allow such actions so noone likely noticed.  This
patch adds the proper definitions and thus proper permissions
enforcement.

Signed-off-by: Eric Paris <eparis@redhat.com>
Cc: James Morris <jmorris@namei.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
security/selinux/nlmsgtab.c