The restorecon method needs the stat module as well
This commit is contained in:
parent
896e46d7d4
commit
f4a6eb5feb
@ -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 """
|
||||||
|
Loading…
Reference in New Issue
Block a user