This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christian.heimes
Recipients Leif Middelschulte, christian.heimes, ensc2, hynek
Date 2020-12-09.15:30:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1607527804.33.0.0227213253377.issue38893@roundup.psfhosted.org>
In-reply-to
Content
I have created a new PR that introduces preserve_security_context argument and changes the default behavior of copy operations. All copy operations behave now similar to "cp -p --preserve=xattr" by default. copy2(src, dst, preserve_security_context=True) restores the old, problematic behavior that is similar to "cp -p --preserve=xattr,context".

It's not completely equivalent because I decided to omit all attributes in the restricted "security" xattr namespace. coreutils only handles "security.selinux" on an SELinux enabled system differently.
History
Date User Action Args
2020-12-09 15:30:04christian.heimessetrecipients: + christian.heimes, hynek, Leif Middelschulte, ensc2
2020-12-09 15:30:04christian.heimessetmessageid: <1607527804.33.0.0227213253377.issue38893@roundup.psfhosted.org>
2020-12-09 15:30:04christian.heimeslinkissue38893 messages
2020-12-09 15:30:04christian.heimescreate