GFS2: Add S_NOSEC support
authorSteven Whitehouse <swhiteho@redhat.com>
Thu, 16 Jun 2011 13:06:55 +0000 (14:06 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Fri, 15 Jul 2011 08:32:35 +0000 (09:32 +0100)
commit9964afbb797329e4c6e5d05ebc199c39af618c5f
treec0877e423f5dff8b722869bd3f21622a88889220
parent7cf8dcd3b68a760d66fbc7f0d75d3fbb8f21775d
GFS2: Add S_NOSEC support

This adds S_NOSEC support to GFS2. We set/reset the flag either when
a user calls setattr or when we have just regained the glock
from another node. The flag is only set if there are no xattrs
on the inode and there is no suid bit set.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Reviewed-by: Andi Kleen <ak@linux.intel.com>
Cc: Al Viro <viro@ZenIV.linux.org.uk>
fs/gfs2/file.c
fs/gfs2/glops.c
fs/gfs2/ops_fstype.c