]> rtime.felk.cvut.cz Git - linux-imx.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)
committerAK <andi@firstfloor.org>
Thu, 31 Mar 2011 18:57:54 +0000 (11:57 -0700)
commit88164580062e2fcb5afe58cd7ffaca05f668f009
treed1629e35c0a298dae0cfaab73d3da3d452cdfc4a
parent5373abb7b877203095f9bd806d9f8040998fccb5
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>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Cc: James Morris <jmorris@namei.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
security/selinux/nlmsgtab.c