Porting on FreeBSD 53

Hervé Kergourlay herve.kergourlay at atempo.com
Fri May 13 06:39:58 GMT 2005


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 at freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
>To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
>  
>



More information about the freebsd-hackers mailing list