diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2015-03-12 16:31:13 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2015-03-17 15:36:45 +0100 |
commit | 3e6dac8e14f8a3da6d359ee013453dbd8a38dd99 (patch) | |
tree | 920abe917018642fcf735e2e215a41180c8366ba /src/providers/ipa/ipa_selinux.c | |
parent | 8be0cf3eea892e13410c13abb030322599ca1b4f (diff) | |
download | sssd-3e6dac8e14f8a3da6d359ee013453dbd8a38dd99.tar.gz sssd-3e6dac8e14f8a3da6d359ee013453dbd8a38dd99.tar.xz sssd-3e6dac8e14f8a3da6d359ee013453dbd8a38dd99.zip |
selinux: Handle setup with empty default and no configured rules
SSSD also needs to handle the setup where no rules match the machine and
the default has no MLS component.
Related to:
https://fedorahosted.org/sssd/ticket/2587
Reviewed-by: Michal Židek <mzidek@redhat.com>
Diffstat (limited to 'src/providers/ipa/ipa_selinux.c')
-rw-r--r-- | src/providers/ipa/ipa_selinux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/providers/ipa/ipa_selinux.c b/src/providers/ipa/ipa_selinux.c index 0555cdd50..516e31a19 100644 --- a/src/providers/ipa/ipa_selinux.c +++ b/src/providers/ipa/ipa_selinux.c @@ -808,7 +808,7 @@ selinux_child_setup(TALLOC_CTX *mem_ctx, { errno_t ret; char *seuser; - char *mls_range; + const char *mls_range; char *ptr; char *username; char *username_final; @@ -834,7 +834,7 @@ selinux_child_setup(TALLOC_CTX *mem_ctx, } if (*ptr == '\0') { /* No mls_range specified */ - mls_range = NULL; + mls_range = ""; } else { *ptr = '\0'; /* split */ mls_range = ptr + 1; |