From f4a6eb5febcc73215e80fb37da5154493f0417da Mon Sep 17 00:00:00 2001 From: Luke Macken Date: Mon, 17 Nov 2008 20:26:34 +0000 Subject: [PATCH] The restorecon method needs the stat module as well --- libselinux-rhat.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libselinux-rhat.patch b/libselinux-rhat.patch index 469e918..2ccf200 100644 --- a/libselinux-rhat.patch +++ b/libselinux-rhat.patch @@ -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 """