diff options
author | Jeremy Katz <katzj@redhat.com> | 2009-06-26 14:50:44 -0400 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2009-06-26 14:51:12 -0400 |
commit | c329ea2f4d4aeb058e78bcc73e9cff90a130a193 (patch) | |
tree | c1e9604c91de8f8a0d6136852a22084264f5275d /livecd.py | |
parent | fc2e29ef0b3ef617f7536606c7287105859a68a8 (diff) | |
download | anaconda-c329ea2f4d4aeb058e78bcc73e9cff90a130a193.tar.gz anaconda-c329ea2f4d4aeb058e78bcc73e9cff90a130a193.tar.xz anaconda-c329ea2f4d4aeb058e78bcc73e9cff90a130a193.zip |
Ensure we set the SELinux context correctly on symlinks (#505054)
Diffstat (limited to 'livecd.py')
-rw-r--r-- | livecd.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -65,6 +65,8 @@ def copytree(src, dst, symlinks=False, preserveOwner=False, if symlinks and os.path.islink(srcname): linkto = os.readlink(srcname) os.symlink(linkto, dstname) + if preserveSelinux: + selinux.lsetfilecon(dstname, selinux.lgetfilecon(srcname)[1]) elif os.path.isdir(srcname): copytree(srcname, dstname, symlinks, preserveOwner, preserveSelinux) else: |