]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
SELinux: define permissions for DCB netlink messages
authorEric Paris <eparis@redhat.com>
Thu, 16 Dec 2010 16:46:51 +0000 (11:46 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Feb 2011 22:47:26 +0000 (14:47 -0800)
commitb38c0639474250cb4cdb91a36a2a2f781305cdcc
treee37b44a46c14e6d78ce13a9659560d918244bb9d
parentde79143f1a7d8bc3340d982813ccc013cca01ccc
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