On 12/16/2009 04:59 AM, Gerd Mueller wrote:
After deploying files I still have differences on a few systems:

"SELinux contexts differ! Current context: None"

But selinux is disabled?


Hello,

SELinux support for config files is a fairly new feature and may have bugs. To help track this down, and possibly fix it, can you please do the following:

# cd /usr/share/rhn/config_common/
# patch -p5 < /path/to/attached/patch

And schedule a config compare?

Thanks,

Josh
diff --git a/client/tools/rhncfg/config_common/file_utils.py 
b/client/tools/rhncfg/config_common/file_utils.py
index 3e19550..4a95961 100644
--- a/client/tools/rhncfg/config_common/file_utils.py
+++ b/client/tools/rhncfg/config_common/file_utils.py
@@ -91,9 +91,11 @@ class FileProcessor:
         result = ''
 
         cur_sectx = lgetfilecon(path)[1]
+        if cur_sectx == None:
+             cur_sectx = ''
         if file_struct.has_key('selinux_ctx'):
             if cur_sectx != file_struct['selinux_ctx']:
-                sectx_result = "SELinux contexts differ!  Current context: 
%s\n" % cur_sectx
+                sectx_result = "SELinux contexts differ!  Current: %s, 
expected: %s\n" % (cur_sectx, file_struct['selinux_ctx'])
 
         if file_struct['filetype'] == 'symlink':
             try:

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list

Reply via email to