[New-bugs-announce] [issue26328] shutil._copyxattr() function shouldn't fail if setting security.selinux xattr fails

Laurent Bigonville report at bugs.python.org
Wed Feb 10 08:03:44 EST 2016


New submission from Laurent Bigonville:

Hi,

In the _copyxattr() function from the shutil module, the function throw an exception as soon as the copy of an attribute is failing.

But setting the "security.selinux" xattr will likely fail if selinux is enforcing more.

If this function is supposed to behave like cp -a, failing to set the security.selinux xattr shouldn't be fatal


See: https://bugs.python.org/issue14082 and https://bugs.python.org/msg157903

----------
components: Library (Lib)
messages: 260009
nosy: bigon
priority: normal
severity: normal
status: open
title: shutil._copyxattr() function shouldn't fail if setting security.selinux xattr fails
type: behavior
versions: Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26328>
_______________________________________


More information about the New-bugs-announce mailing list