]> git.baikalelectronics.ru Git - kernel.git/commit
selinux: add support for RTM_NEWCHAIN, RTM_DELCHAIN, and RTM_GETCHAIN
authorPaul Moore <paul@paul-moore.com>
Wed, 28 Nov 2018 17:57:33 +0000 (12:57 -0500)
committerPaul Moore <paul@paul-moore.com>
Thu, 29 Nov 2018 16:32:02 +0000 (11:32 -0500)
commit71d5cdacbf0df7b4debf275dbf7e27ea711dbc59
treeac1e1196cb004ea8c1b0ecd5ac623dc58c1a2d02
parent43cc531fd3496d49cf13cde4c6818e5eaa084ca4
selinux: add support for RTM_NEWCHAIN, RTM_DELCHAIN, and RTM_GETCHAIN

Commit b73bda75ff93 ("net: sched: introduce chain object to uapi")
added new RTM_* definitions without properly updating SELinux, this
patch adds the necessary SELinux support.

While there was a BUILD_BUG_ON() in the SELinux code to protect from
exactly this case, it was bypassed in the broken commit.  In order to
hopefully prevent this from happening in the future, add additional
comments which provide some instructions on how to resolve the
BUILD_BUG_ON() failures.

Fixes: b73bda75ff93 ("net: sched: introduce chain object to uapi")
Cc: <stable@vger.kernel.org> # 4.19
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/nlmsgtab.c