]> git.baikalelectronics.ru Git - kernel.git/commit
selinux: recognize netlink messages for 'ip addrlabel'
authorMichal Schmidt <mschmidt@redhat.com>
Wed, 5 Nov 2008 12:35:06 +0000 (13:35 +0100)
committerJames Morris <jmorris@namei.org>
Wed, 5 Nov 2008 23:08:36 +0000 (07:08 +0800)
commit4c3109b31ddf1c4c70927f96207233e5204fd465
tree00386a75dd8c998621d2204609425b41be420f62
parent37a62b377c6c718640727227a9b70788c047803a
selinux: recognize netlink messages for 'ip addrlabel'

In enforcing mode '/sbin/ip addrlabel' results in a SELinux error:
type=SELINUX_ERR msg=audit(1225698822.073:42): SELinux:  unrecognized
netlink message type=74 for sclass=43

The problem is missing RTM_*ADDRLABEL entries in SELinux's netlink
message types table.

Reported in https://bugzilla.redhat.com/show_bug.cgi?id=469423

Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: James Morris <jmorris@namei.org>
security/selinux/nlmsgtab.c