From 38e93bad1ffd99e698d24541793148e1da587389 Mon Sep 17 00:00:00 2001 From: Russell Coker Date: Mon, 26 Mar 2012 15:57:49 +0200 Subject: [PATCH] libsemanage: fallback-user-level Having magic numbers in the code is a bad idea, using a macro is better. Signed-off-by: Eric Paris Acked-by: Dan Walsh --- libsemanage/src/genhomedircon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libsemanage/src/genhomedircon.c b/libsemanage/src/genhomedircon.c index d2646aee..1b4c6c80 100644 --- a/libsemanage/src/genhomedircon.c +++ b/libsemanage/src/genhomedircon.c @@ -772,7 +772,7 @@ static int setup_fallback_user(genhomedircon_settings_t * s) if (semanage_user_query(s->h_semanage, key, &u) < 0) { prefix = name; - level = "s0"; + level = FALLBACK_USER_LEVEL; } else { @@ -863,7 +863,7 @@ static genhomedircon_user_entry_t *get_users(genhomedircon_settings_t * s, level = semanage_user_get_mlslevel(*u); } else { prefix = name; - level = "s0"; + level = FALLBACK_USER_LEVEL; } retval = getpwnam_r(name, &pwstorage, rbuf, rbuflen, &pwent);