diff options
author | Sol Jerome <sol.jerome@gmail.com> | 2016-01-20 10:46:50 -0600 |
---|---|---|
committer | Sol Jerome <sol.jerome@gmail.com> | 2016-01-20 10:46:50 -0600 |
commit | a112a7f28d94cbad43c77f1643dce45b97e5f364 (patch) | |
tree | e3ddb69c6d0da741365c338e851db6bf3a31dde5 | |
parent | b3254347f4815d8534d0cc629bd08aadb1cad034 (diff) | |
parent | 9137799d93dd19051713b08a36e008fdb25aab31 (diff) | |
download | bcfg2-a112a7f28d94cbad43c77f1643dce45b97e5f364.tar.gz bcfg2-a112a7f28d94cbad43c77f1643dce45b97e5f364.tar.bz2 bcfg2-a112a7f28d94cbad43c77f1643dce45b97e5f364.zip |
Merge branch 'client-secontext' of https://github.com/gordonmessmer/bcfg2
-rw-r--r-- | src/lib/Bcfg2/Client/Tools/POSIX/base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Bcfg2/Client/Tools/POSIX/base.py b/src/lib/Bcfg2/Client/Tools/POSIX/base.py index b1e754408..89675af02 100644 --- a/src/lib/Bcfg2/Client/Tools/POSIX/base.py +++ b/src/lib/Bcfg2/Client/Tools/POSIX/base.py @@ -562,8 +562,8 @@ class POSIXTool(Bcfg2.Client.Tools.Tool): except OSError: errors.append("%s has no default SELinux context" % entry.get("name")) - else: - wanted_secontext = entry.get("secontext") + elif 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. " |