]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - security/selinux/hooks.c
selinux: adjust rules for ATTR_FORCE
authorAmerigo Wang <amwang@redhat.com>
Fri, 21 Aug 2009 02:29:02 +0000 (19:29 -0700)
committerJames Morris <jmorris@namei.org>
Fri, 21 Aug 2009 04:25:30 +0000 (14:25 +1000)
commitbc6a6008e5e3c7a30191a7f19ab19e85b14b1705
tree46504659c2303224cb3c8ad13e1d1b580351b41b
parentece13879e74313e62109e0755dd3d4f172df89e2
selinux: adjust rules for ATTR_FORCE

As suggested by OGAWA Hirofumi in thread:
http://lkml.org/lkml/2009/8/7/132, we should let selinux_inode_setattr()
to match our ATTR_* rules.  ATTR_FORCE should not force things like
ATTR_SIZE.

[hirofumi@mail.parknet.co.jp: tweaks]
Signed-off-by: WANG Cong <amwang@redhat.com>
Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Acked-by: Eric Paris <eparis@redhat.com>
Cc: Eugene Teo <eteo@redhat.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Christoph Hellwig <hch@lst.de>
Acked-by: James Morris <jmorris@namei.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: James Morris <jmorris@namei.org>
security/selinux/hooks.c