# This is a special version of the os module, wrapped for unicode support.
from portage import os
from portage import _unicode_encode
+from portage import selinux
from portage.cache.mappings import slot_dict_class
level=logging.ERROR, noiselevel=-1)
#now create our directory
if self.settings.selinux_enabled():
- import selinux
- sid = selinux.get_sid(mysrc)
- selinux.secure_mkdir(mydest,sid)
+ selinux.mkdir(mydest, mysrc)
else:
os.mkdir(mydest)
if bsd_chflags:
else:
#destination doesn't exist
if self.settings.selinux_enabled():
- import selinux
- sid = selinux.get_sid(mysrc)
- selinux.secure_mkdir(mydest, sid)
+ selinux.mkdir(mydest, mysrc)
else:
os.mkdir(mydest)
os.chmod(mydest, mystat[0])