]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - security/selinux/hooks.c
SELinux: Use unknown perm handling to handle unknown netlink msg types
[linux-2.6-omap-h63xx.git] / security / selinux / hooks.c
index f71de5a64d0c9ac1f01b0f79fb43418c5d6a7343..7fd4de46b2a91be21cf90d7a5b947ea8b6b56886 100644 (file)
@@ -4395,7 +4395,7 @@ static int selinux_nlmsg_perm(struct sock *sk, struct sk_buff *skb)
                                  "SELinux:  unrecognized netlink message"
                                  " type=%hu for sclass=%hu\n",
                                  nlh->nlmsg_type, isec->sclass);
-                       if (!selinux_enforcing)
+                       if (!selinux_enforcing || security_get_allow_unknown())
                                err = 0;
                }