-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
gh-83074: Ignore EACCES, ENOSYS in copyxattr #21430
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
base: main
Are you sure you want to change the base?
Conversation
:func:`shutil.copystat` now ignores :const:`errno.ENOSYS` and :const:`errno.EACCES` when copying extended file attributes. :func:`os.listxattr` can fail with ENOSYS on some file systems (e.g. NFS). An LSM may block :func:`os.setxattr` for security attributes like ``security.selinux``. Signed-off-by: Christian Heimes <[email protected]>
I am not sure I'm fond of silently ignoring errors -- that can have security implications since the result might not be as expected. |
Also fixes bpo-38633 |
This missed the boat for inclusion in Python 3.9 which accepts security fixes only as of today. |
|
:func:
shutil.copystat
now ignores :const:errno.ENOSYS
and:const:
errno.EACCES
when copying extended file attributes.:func:
os.listxattr
can fail with ENOSYS on some file systems (e.g. NFS).An LSM may block :func:
os.setxattr
for security attributes likesecurity.selinux
.Signed-off-by: Christian Heimes [email protected]
https://bugs.python.org/issue38893