The restorecon method needs the stat module as well

This commit is contained in:
Luke Macken 2008-11-17 20:26:34 +00:00
parent 896e46d7d4
commit f4a6eb5feb

View File

@ -110,7 +110,7 @@ diff --exclude-from=exclude -N -u -r nsalibselinux/src/selinux.py libselinux-2.0
del types del types
+import shutil, os +import shutil, os, stat
+ +
+def restorecon(path, recursive=False): +def restorecon(path, recursive=False):
+ """ Restore SELinux context on a given path """ + """ Restore SELinux context on a given path """