[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rdiff-backup-users] rdiff-backup - ACL troubles!
From: |
Andrew Ross |
Subject: |
Re: [rdiff-backup-users] rdiff-backup - ACL troubles! |
Date: |
Mon, 31 Oct 2005 14:58:13 +1100 |
User-agent: |
Mozilla Thunderbird 1.0.7 (Macintosh/20050923) |
Ben Escoto wrote:
Murali Vadivelu <address@hidden>
wrote the following on Mon, 31 Oct 2005 02:46:48 +0000
Does it use the Mac OS X specific command /usr/sbin/fsaclctl command?
If that is the case it would fail as the OS probably stores the ACL
enabled status at the root of the volume.
Oh, no it "manually" tries to read ACL information from that directory
with pylibacl. Here is the relevant code:
try: posix1e.ACL(file=rp.path)
except IOError:
log.Log("ACLs not supported by filesystem at %s" % (rp.path,), 4)
self.acls = 0
else: self.acls = 1
I have ACLs enabled on my Tiger system and have noticed that pylibacl
throws an IOError when you attempt to read the ACL for a file/dir that
does not have an ACL set yet eg.
aross-laptop:~ aross$ mkdir -p test/acltest
aross-laptop:~ aross$ ls -le test
total 0
drwxr-xr-x 2 aross aross 68 Oct 31 14:50 acltest
aross-laptop:~ aross$ python -c 'import posix1e; acl =
posix1e.ACL(file="acltest")'
Traceback (most recent call last):
File "<string>", line 1, in ?
IOError: [Errno 2] No such file or directory
aross-laptop:~ aross$ chmod +a "admin allow delete" acltest
aross-laptop:~ aross$ ls -le test
drwxr-xr-x + 2 root aross 68 Oct 31 14:52 acltest
0: group:admin allow delete
aross-laptop:~ aross$ python -c 'import posix1e; acl =
posix1e.ACL(file="acltest")'
[ no expection thrown]
I don't know if this is a bug in pylibacl or a case of Apple not
sticking to the standard.
Cheers
Andrew Ross
IT Officer
Whitley College
Ph: (03) 9340 8008