diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index b8ede1c7607b533699c3161db4f9b756226e464f..b1ac22d231954bc5e900c07da670962c953ba1c2 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -1077,6 +1077,9 @@ static int inode_has_perm(struct task_struct *tsk, struct inode_security_struct *isec; struct avc_audit_data ad; + if (unlikely (IS_PRIVATE (inode))) + return 0; + tsec = tsk->security; isec = inode->i_security;