[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1265002505-8387-15-git-send-email-aneesh.kumar@linux.vnet.ibm.com>
Date: Mon, 1 Feb 2010 11:04:56 +0530
From: "Aneesh Kumar K.V" <aneesh.kumar@...ux.vnet.ibm.com>
To: sfrench@...ibm.com, ffilz@...ibm.com, agruen@...e.de,
adilger@....com, sandeen@...hat.com, tytso@....edu,
staubach@...hat.com, bfields@...i.umich.edu, jlayton@...hat.com
Cc: aneesh.kumar@...ux.vnet.ibm.com, linux-fsdevel@...r.kernel.org,
nfsv4@...ux-nfs.org, linux-ext4@...r.kernel.org
Subject: [PATCH 14/23] richacl: Disable automatic inheritance with posix mapped acls
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@...ux.vnet.ibm.com>
---
fs/richacl_posix.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/fs/richacl_posix.c b/fs/richacl_posix.c
index 437d3ac..ae49106 100644
--- a/fs/richacl_posix.c
+++ b/fs/richacl_posix.c
@@ -191,6 +191,12 @@ static void posix_to_richacl(struct posix_acl *pacl, int type,
*/
acl->a_flags |= ACL4_POSIX_MAPPED;
+ /*
+ * Mark the acl as ACL4_PROTECTED so that we don't
+ * do automatic inheritance with posix mapped acls
+ */
+ acl->a_flags |= ACL4_PROTECTED;
+
return;
}
--
1.7.0.rc0.48.gdace5
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists