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 marktay
Recipients marktay
Date 2017-01-18.23:33:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1484782411.92.0.520036190929.issue29317@psf.upfronthosting.co.za>
In-reply-to
Content
======================================================================
ERROR: test_copyxattr_symlinks (test.test_shutil.TestShutil)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/Python-3.6.0/Lib/test/test_shutil.py", line 505, in test_copyxattr_symlinks
    os.setxattr(src, 'trusted.foo', b'42')
PermissionError: [Errno 1] Operation not permitted: '/tmp/tmpvlu10qdm/foo'

----------------------------------------------------------------------

The problem is that "trusted" attributes (in this case trusted.foo) are visible and accessible only to processes that have the CAP_SYS_ADMIN capability. The current "skipUnless" guard is wrong: being root (UID 0) doesn't necessarely imply you have CAP_SYS_ADMIN. For instance this test (and thus "make test") will always fail in a Docker container unless it's started with "--cap-add SYS_ADMIN" (which, in general, is not the best thing to do).
History
Date User Action Args
2017-01-18 23:33:31marktaysetrecipients: + marktay
2017-01-18 23:33:31marktaysetmessageid: <1484782411.92.0.520036190929.issue29317@psf.upfronthosting.co.za>
2017-01-18 23:33:31marktaylinkissue29317 messages
2017-01-18 23:33:31marktaycreate