[Top] [All Lists]

Re: BUG: ACL's are a security attribute. They belong in the Security att

To: Linda Walsh <xfs@xxxxxxxxx>
Subject: Re: BUG: ACL's are a security attribute. They belong in the Security attrib space, not the Root-attrib space.
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Wed, 24 Jul 2013 14:05:25 +1000
Cc: xfs-oss <xfs@xxxxxxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <51EEF5C6.3050904@xxxxxxxxx>
References: <51EEF5C6.3050904@xxxxxxxxx>
User-agent: Mutt/1.5.21 (2010-09-15)
On Tue, Jul 23, 2013 at 02:29:42PM -0700, Linda Walsh wrote:
> Currently there are 3 disjoint attribute spaces on files -- user, root and 
> security.
> (there is a misprint in the manual that says there is 2, but later, it gives
> talks about using no switch giving the User attrib space, -R for Root attrib
> space, and -S for the Security attrib space).

You're confusing on-disk formats used to store attributes with
namepaces used to report and access them.  Linux has security,
system, trusted and user namespaces, while on disk XFS has "root",
"secure",  and "user" spaces.


Linux attr      XFS on disk
system          root
security        secure
trusted         root
user            user

> Of these, the ACL's are being placed in the root, which might describe
> file types, or other OS related info, but not security attributes like ACL's.
> They should be in the Security attrib space (otherwise what is the point of a
> Security attribute space).

Posix ACLS are defined by the *kernel* to be in the "system"

#define POSIX_ACL_XATTR_ACCESS  "system.posix_acl_access"
#define POSIX_ACL_XATTR_DEFAULT "system.posix_acl_default"

IOWs, the Linux *kernel* doesn't consider ACLs to be part of the
security namespace, and so neither does XFS.


Dave Chinner

<Prev in Thread] Current Thread [Next in Thread>