Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f72f2d2e authored by Steven Whitehouse's avatar Steven Whitehouse
Browse files

GFS2: Don't "get" xattrs for ACLs when ACLs are turned off



This is to match ext3 behaviour. We should not allow getting of
xattrs relating to ACLs when ACLs are turned off.

Reported-by: default avatarNate Straz <nstraz@redhat.com>
Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
parent ed4878e8
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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;