summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Client
diff options
context:
space:
mode:
authorGordon Messmer <gordon@dragonsdawn.net>2015-11-18 18:55:54 -0800
committerGordon Messmer <gordon@dragonsdawn.net>2015-11-18 18:55:54 -0800
commitdea915f5ce3702ce5c53f6a438d53360b42b22ad (patch)
treec3a0e4ef0efdcfdf320d25d59c54a6df7d3da730 /src/lib/Bcfg2/Client
parent815259a57104f23d98f705b7c82c7581adc2ff7e (diff)
downloadbcfg2-dea915f5ce3702ce5c53f6a438d53360b42b22ad.tar.gz
bcfg2-dea915f5ce3702ce5c53f6a438d53360b42b22ad.tar.bz2
bcfg2-dea915f5ce3702ce5c53f6a438d53360b42b22ad.zip
bcfg2 server sends a complete SELinux context, but we only need the type. Treat this the same as selinux.matchpathcon.
Diffstat (limited to 'src/lib/Bcfg2/Client')
-rw-r--r--src/lib/Bcfg2/Client/Tools/POSIX/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Client/Tools/POSIX/base.py b/src/lib/Bcfg2/Client/Tools/POSIX/base.py
index 488920989..d5c1c7e14 100644
--- a/src/lib/Bcfg2/Client/Tools/POSIX/base.py
+++ b/src/lib/Bcfg2/Client/Tools/POSIX/base.py
@@ -563,7 +563,7 @@ class POSIXTool(Bcfg2.Client.Tools.Tool):
errors.append("%s has no default SELinux context" %
entry.get("name"))
else:
- wanted_secontext = entry.get("secontext")
+ wanted_secontext = entry.get("secontext").split(":")[2]
if (wanted_secontext and
attrib['current_secontext'] != wanted_secontext):
errors.append("SELinux context for path %s is incorrect. "