diff options
author | Gordon Messmer <gordon@dragonsdawn.net> | 2015-11-18 18:55:54 -0800 |
---|---|---|
committer | Gordon Messmer <gordon@dragonsdawn.net> | 2015-11-18 18:55:54 -0800 |
commit | dea915f5ce3702ce5c53f6a438d53360b42b22ad (patch) | |
tree | c3a0e4ef0efdcfdf320d25d59c54a6df7d3da730 /src/lib/Bcfg2 | |
parent | 815259a57104f23d98f705b7c82c7581adc2ff7e (diff) | |
download | bcfg2-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')
-rw-r--r-- | src/lib/Bcfg2/Client/Tools/POSIX/base.py | 2 |
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. " |