summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNikolai Kondrashov <Nikolai.Kondrashov@redhat.com>2014-01-10 12:19:55 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-02-12 22:30:41 +0100
commitcb637a64fc51d6f4c718f75e23b19df6bdfe1c51 (patch)
treee9c017ff0b533fd90b5f57c815437188cf339064 /src
parentea92ba32cdf14ec163fe09f5acb4a77375884f06 (diff)
downloadsssd-cb637a64fc51d6f4c718f75e23b19df6bdfe1c51.tar.gz
sssd-cb637a64fc51d6f4c718f75e23b19df6bdfe1c51.tar.xz
sssd-cb637a64fc51d6f4c718f75e23b19df6bdfe1c51.zip
Update debug levels in sss_semanage_error_callback
Switch to using new debug levels in sss_semanage_error_callback. Make SEMANAGE_MSG_WARN map to SSSDBG_MINOR_FAILURE instead of SSSDBG_CONF_SETTINGS as it suits it better. This prepares the function for the following patch switching it to using updated "debug_fn" which expects new debug levels. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Stephen Gallagher <sgallagh@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/tools/selinux.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tools/selinux.c b/src/tools/selinux.c
index e4a307810..4f0c8c711 100644
--- a/src/tools/selinux.c
+++ b/src/tools/selinux.c
@@ -96,20 +96,20 @@ static void sss_semanage_error_callback(void *varg,
semanage_handle_t *handle,
const char *fmt, ...)
{
- int level = -1;
+ int level = SSSDBG_INVALID;
int ret;
char * message = NULL;
va_list ap;
switch (semanage_msg_get_level(handle)) {
case SEMANAGE_MSG_ERR:
- level = 1;
+ level = SSSDBG_CRIT_FAILURE;
break;
case SEMANAGE_MSG_WARN:
- level = 4;
+ level = SSSDBG_MINOR_FAILURE;
break;
case SEMANAGE_MSG_INFO:
- level = 6;
+ level = SSSDBG_TRACE_FUNC;
break;
}