From owner-freebsd-hackers@FreeBSD.ORG Fri May 13 06:39:58 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 971D216A4CE; Fri, 13 May 2005 06:39:58 +0000 (GMT) Received: from ds9.atempo.com (ds9.atempo.com [212.157.146.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id 19AFA43D4C; Fri, 13 May 2005 06:39:58 +0000 (GMT) (envelope-from herve.kergourlay@atempo.com) Received: from ds9.atempo.com (localhost.localdomain [127.0.0.1]) by localhost.atempo.com (Postfix) with ESMTP id 5E8DF2FD14; Fri, 13 May 2005 08:39:57 +0200 (CEST) Received: from atempo.com (unknown [172.16.15.140])by ds9.atempo.com (Postfix) with ESMTP id 50E0B2FD08; Fri, 13 May 2005 08:39:57 +0200 (CEST) Received: from [192.168.2.108] (aragorn.vannes.quadratec.fr [192.168.2.108])by atempo.com (Postfix) with ESMTP id 0FF2C1E331C; Fri, 13 May 2005 08:39:57 +0200 (CEST) Message-ID: <42844BBC.3020503@atempo.com> Date: Fri, 13 May 2005 08:39:56 +0200 From: =?ISO-8859-1?Q?Herv=E9_Kergourlay?= User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: fr, en MIME-Version: 1.0 To: Robert Watson References: <428307A9.10901@atempo.com> <20050512230409.G92075@fledge.watson.org> In-Reply-To: <20050512230409.G92075@fledge.watson.org> X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/mixed; boundary=------------050006010908080000050702 X-imss-version: 2.025 X-imss-result: Passed X-imss-approveListMatch: *@atempo.com X-Content-Filtered-By: Mailman/MimeDel 2.1.1 cc: hackers@freebsd.org Subject: Re: Porting on FreeBSD 53 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 May 2005 06:39:58 -0000 This is a multi-part message in MIME format. --------------050006010908080000050702 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Robert Watson a écrit : > > On Thu, 12 May 2005, Hervé Kergourlay wrote: > >> 2) ACLs >> >> I'm using the API acl_get_file and family with success with >> ACL_TYPE_ACCESS defined in /usr/include/sys/acl.h >> >> #define ACL_TYPE_ACCESS 0x00000000 >> #define ACL_TYPE_DEFAULT 0x00000001 >> #define ACL_TYPE_AFS 0x00000002 >> #define ACL_TYPE_CODA 0x00000003 >> #define ACL_TYPE_NTFS 0x00000004 >> #define ACL_TYPE_NWFS 0x00000005 >> >> but what about the other defines, specially ACL_TYPE_DEFAULT, are >> there used. I didn't find who in the documentation > > > ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT are the only implemented types. > I just removed the others from HEAD since they're unnecessary. I'll > merge that change to RELENG_5_4. > great, It's what I did but I've a problem with the default Acl, the setfacl -d failed with the following message fiobsd.hky(289) [dev->acl] ll total 10 drwxr-xr-x+ 2 hky wheel 512 May 12 13:41 dir1/ -rw-r-xr--+ 1 hky wheel 0 May 10 15:49 file1* -rwxr-xr-x+ 1 hky wheel 0 May 12 13:46 file2* lrwxr-xr-x 1 hky wheel 5 May 12 13:42 link2@ -> file2 drwxrwxrwx 2 hky wheel 512 May 11 14:44 rst/ fiobsd.hky(290) [dev->acl] setfacl -d -m u::rw- dir1 setfacl: acl_calc_mask() failed: Invalid argument setfacl: failed to set ACL mask on dir1 fiobsd.hky(291) [dev->acl] getfacl -d dir1/ #file:dir1/ #owner:114 #group:0 any idea ? hervé >> 3) Extended attributes >> >> are Acls part of these attributes or not ? do we have to backup >> theses attributes with the Acls ? > > > Access control lists are stored in system extended attributes. From > the perspective of backup, you want to backup the ACLs, not the system > attributes. There is reference code in BSD tar, and star is also able > to backup ACLs. th > > Robert N M Watson > >------------------------------------------------------------------------ > >_______________________________________________ >freebsd-hackers@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-hackers >To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > > --------------050006010908080000050702--