Skip to content

Hints for people expecting an API that mimics setfacl #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

This is a Python 3.7+ extension module allows you to manipulate the
POSIX.1e Access Control Lists present in some OS/file-systems
combinations.
combinations. Note this module provides a Python interface to libacl
it does not have the features of setfacl.

Downloads: go to <https://pylibacl.k1024.org/downloads>. Latest
version is 0.7.2. The source repository is either at
Expand Down Expand Up @@ -59,6 +60,19 @@ or:

- `pkg install py37-setuptools`

## Example
```
import posix1e

# you must provide user, group and other permissions first and in that order
acl = ACL(text = 'u:rx,g:r,o:-,u:123:r')
# if you don't provide a mask you must explicity have it generated
acl.calc_mask()
acl.applyto('/foo/)
# unlike setfacl there is no "d:u:123:r" call applyto the a different type
acl.applyto('/foo', ACL.ACL_TYPE_DEFAULT)
```

## Security

For reporting security vulnerabilities, please see `SECURITY.md`.
Expand Down