* [Cluster-devel] GFS2: Change system acls so that they can only be "got" when fs is mounted with acl support
@ 2010-05-20 15:29 Steven Whitehouse
0 siblings, 0 replies; only message in thread
From: Steven Whitehouse @ 2010-05-20 15:29 UTC (permalink / raw)
To: cluster-devel.redhat.com
In the recent updates to xattr/acls the behaviour has changed
slightly in that it was possible to look at the content of acls
on filesystems mounted noacl. This patch changes the code
to match the prior behaviour (and also that of ext3)
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
diff --git a/fs/gfs2/acl.c b/fs/gfs2/acl.c
index 87ee309..ca991d7 100644
--- a/fs/gfs2/acl.c
+++ b/fs/gfs2/acl.c
@@ -236,10 +236,14 @@ static int gfs2_xattr_system_get(struct dentry *dentry, const char *name,
void *buffer, size_t size, int xtype)
{
struct inode *inode = dentry->d_inode;
+ struct gfs2_sbd *sdp = GFS2_SB(inode);
struct posix_acl *acl;
int type;
int error;
+ if (!sdp->sd_args.ar_posix_acl)
+ return -EOPNOTSUPP;
+
type = gfs2_acl_type(name);
if (type < 0)
return type;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-05-20 15:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-20 15:29 [Cluster-devel] GFS2: Change system acls so that they can only be "got" when fs is mounted with acl support Steven Whitehouse
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).