]> git.baikalelectronics.ru Git - kernel.git/commit
selinux: Don't sleep inside inode_getsecid hook
authorAndreas Gruenbacher <agruenba@redhat.com>
Thu, 18 Feb 2016 11:04:08 +0000 (12:04 +0100)
committerPaul Moore <paul@paul-moore.com>
Fri, 19 Feb 2016 21:29:19 +0000 (16:29 -0500)
commit8e2585f383c2b0550083eeb0450e16388ac45061
treee572b7e4fa493fba5cc7252d4bab26b1c81624dc
parent95fd10a63673f5dd48387eb18f06466ed1c52000
selinux: Don't sleep inside inode_getsecid hook

The inode_getsecid hook is called from contexts in which sleeping is not
allowed, so we cannot revalidate inode security labels from there. Use
the non-validating version of inode_security() instead.

Reported-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/hooks.c