From 058f5eed4e31add69a1d4212594b6da1e776f1ac Mon Sep 17 00:00:00 2001 From: Eric Paris Date: Wed, 5 Nov 2008 09:34:42 -0500 Subject: [PATCH] --- yaml --- r: 120647 b: refs/heads/master c: 39c9aede2b4a252bd296c0a86be832c3d3d0a273 h: refs/heads/master i: 120645: d28571a3761ec7bd3779839c24f56f485d697777 120643: 37894aef305b8a8cbf861617c6b0cefc3612144b 120639: e031fcdf655195a12c21687b11dc78320e8381ce v: v3 --- [refs] | 2 +- trunk/security/selinux/hooks.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 90e444031a64..4ed7a0778d9d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 1f29fae29709b4668979e244c09b2fa78ff1ad59 +refs/heads/master: 39c9aede2b4a252bd296c0a86be832c3d3d0a273 diff --git a/trunk/security/selinux/hooks.c b/trunk/security/selinux/hooks.c index f71de5a64d0c..7fd4de46b2a9 100644 --- a/trunk/security/selinux/hooks.c +++ b/trunk/security/selinux/hooks.c @@ -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; }