From c0cd807961986f9ff7281a00bce6ae181b11e587 Mon Sep 17 00:00:00 2001 From: Aneesh Kumar K.V Date: Tue, 17 Nov 2009 13:53:58 +0530 Subject: [RFC PATCH 13/14] richacl: Disable automatic inheritance with posix mapped acls Signed-off-by: Aneesh Kumar K.V --- 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.6.5.2.74.g610f9