Skip to content

Improve behaviour for filesystems which don't support ACLs #15

Description

@ericzolf

When running podman run -it registry.centos.org/centos:8 bash (i.e. podman in non-root mode) and running the following:

[root@09d4044436b8 /]# getfacl '.' 
# file: .
# owner: root
# group: root
user::rwx
group::r-x
other::r-x

[root@09d4044436b8 /]# python3 
Python 3.6.8 (default, Apr 16 2020, 01:36:27) 
[GCC 8.3.1 20191121 (Red Hat 8.3.1-5)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import posix1e
>>> posix1e.ACL(file='.')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: [Errno 95] Operation not supported

i.e. basically the same operation which works from the command line, fails within python. I tried different paths, using an ArchLinux image and the result is always the same. The same action works in a container run as root, and I could accept the difference, but given that the same action works from the command line, it doesn't make sense that the library fails. We're talking pylibacl 0.5.4-3. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions