[New-bugs-announce] [issue24163] shutil.copystat pukes when attribute security.selinux is present

Spencer Stirling report at bugs.python.org
Mon May 11 04:25:42 CEST 2015


New submission from Spencer Stirling:

Using shutil.copytree to copy a directory tree.  The source dir lives on a Windows 7 host, however is being accessed from inside a VirtualBox VM as a "shared folder" (using vagrant to manage this whole thing).

The destination directory is just a regular linux directory inside the VM.  The guest OS is CentOS 5.

shutil.copystat dies on this copy.  I have tracked the problem down to line 154 in shutil.py:

os.setxattr(dst, name, value, follow_symlinks=follow_symlinks)

The issue is that the src directory apparently defines the attribute security.selinux, however setxattr doesn't see this attribute in the destination and throws an exception.

----------
components: IO
messages: 242881
nosy: sstirlin
priority: normal
severity: normal
status: open
title: shutil.copystat pukes when attribute security.selinux is present
type: behavior
versions: Python 3.4

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


More information about the New-bugs-announce mailing list