Commits

Stephen Smalley committed 3a6c4e2

Do not apply permission checks to private files.

Comments (0)

Files changed (1)

security/selinux/hooks.c

 			return rc;
 	}
 
+	if (unlikely(IS_PRIVATE(inode)))
+		return 0;
+
 	return avc_has_perm(sid, isec->sid, isec->sclass, file_to_av(file),
 			    &ad);
 }