OSDN Git Service

SElinux: Adjust the selinux policy to allow access to the root directory
authorsbwml <984419930@qq.com>
Thu, 29 Nov 2018 09:00:20 +0000 (17:00 +0800)
committersbwml <984419930@qq.com>
Wed, 20 Nov 2019 17:15:12 +0000 (01:15 +0800)
security/selinux/avc.c

index 52f3c55..ff7c393 100644 (file)
@@ -985,7 +985,6 @@ static noinline int avc_denied(u32 ssid, u32 tsid,
                return -EACCES;
 
        if (selinux_enforcing && !(avd->flags & AVD_FLAGS_PERMISSIVE))
-               return -EACCES;
 
        avc_update_node(AVC_CALLBACK_GRANT, requested, driver, xperm, ssid,
                                tsid, tclass, avd->seqno, NULL, flags);