summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/_selinux.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/_selinux.py b/pym/portage/_selinux.py
index ca6ec4dec..d013fa969 100644
--- a/pym/portage/_selinux.py
+++ b/pym/portage/_selinux.py
@@ -43,11 +43,11 @@ def mkdir(target, refdir):
_("mkdir: Failed getting context of reference directory \"%s\".") \
% refdir)
- selinux.setfscreatecon(ctx)
+ setfscreate(ctx)
try:
os.mkdir(target)
finally:
- selinux.setfscreatecon()
+ setfscreate()
def rename(src, dest):
src = _unicode_encode(src, encoding=_encodings['fs'], errors='strict')