mtree acl [patch]

Andrew Pantyukhin infofarmer at freebsd.org
Fri Apr 11 05:23:10 UTC 2008


On Thu, Apr 10, 2008 at 10:04:38PM -0700, Tim Kientzle wrote:
> Andrew Pantyukhin wrote:
>> ... ACL support in our mtree ...
>> Also here: http://heka.cenkes.org/sat/diffs/mtree_acl.diff
> 
> Could you give an example of a short mtree file that includes ACLs?
> 
> I see a few minor style issues (tag names should be sorted on
> the mtree.5 and mtree.8 man pages, you need to correct a comment
> that got duplicated in mtree.h), but the idea looks right.

Thanks for taking a look, I corrected the things you pointed out.

Here, the parent dir and "file" have ACLs, "kk" doesn't. I
considered "acl=none" for ACL-less files, but I think it'll
produce more problems than use cases.

#	   user: sat
#	machine: amilo.cenkes.org
#	   tree: /usr/home/sat/bsdevel/src/usr.sbin/mtree/tt
#	   date: Fri Apr 11 09:12:43 2008

# .
/set type=file
.               type=dir \
                acl=user::rwx,user:root:rwx,group::r-x,mask::rwx,other::r-x
    file        acl=user::rw-,group::r--,group:wheel:rwx,mask::rwx,other::r--
    kk          acl=user::rw-,group::r--,other::r--
..



More information about the freebsd-hackers mailing list