Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Apr 2008 09:23:06 +0400
From:      Andrew Pantyukhin <infofarmer@freebsd.org>
To:        Tim Kientzle <kientzle@freebsd.org>
Cc:        hackers@freebsd.org
Subject:   Re: mtree acl [patch]
Message-ID:  <20080411052305.GE81939@amilo.cenkes.org>
In-Reply-To: <47FEF166.6060606@freebsd.org>
References:  <20080410192552.GC81939@amilo.cenkes.org> <47FEF166.6060606@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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--
..




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080411052305.GE81939>