X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/python-afs.git/blobdiff_plain/c7607e2c1d074431922b99adb8b83c3fa8c16ae7..09b4d45674f9d37d44c68f52c9a965b14b7e336f:/afs/_acl.pyx diff --git a/afs/_acl.pyx b/afs/_acl.pyx index ef65388..3f34685 100644 --- a/afs/_acl.pyx +++ b/afs/_acl.pyx @@ -43,3 +43,6 @@ def getCallerAccess(char *dir, int follow=1): cdef vcxstat2 stat pioctl_read(dir, VIOC_GETVCXSTATUS2, &stat, sizeof(vcxstat2), follow) return stat.callerAccess + +def setAcl(char* dir, char* acl, int follow=1): + pioctl_write(dir, VIOCSETAL, acl, follow)