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
1 changed files with 1 additions and 1 deletions

View File

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