aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
Diffstat (limited to 'security')
-rw-r--r--security/selinux/hooks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index f71de5a64d0c..7fd4de46b2a9 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -4395,7 +4395,7 @@ static int selinux_nlmsg_perm(struct sock *sk, struct sk_buff *skb)
4395 "SELinux: unrecognized netlink message" 4395 "SELinux: unrecognized netlink message"
4396 " type=%hu for sclass=%hu\n", 4396 " type=%hu for sclass=%hu\n",
4397 nlh->nlmsg_type, isec->sclass); 4397 nlh->nlmsg_type, isec->sclass);
4398 if (!selinux_enforcing) 4398 if (!selinux_enforcing || security_get_allow_unknown())
4399 err = 0; 4399 err = 0;
4400 } 4400 }
4401 4401