Skip to content

Commit

Permalink
GFS2: Don't "get" xattrs for ACLs when ACLs are turned off
Browse files Browse the repository at this point in the history
This is to match ext3 behaviour. We should not allow getting of
xattrs relating to ACLs when ACLs are turned off.

Reported-by: Nate Straz <[email protected]>
Signed-off-by: Steven Whitehouse <[email protected]>
  • Loading branch information
swhiteho committed May 21, 2010
1 parent ed4878e commit f72f2d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fs/gfs2/acl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f72f2d2

Please sign in to comment.