libsemanage: fallback-user-level

Having magic numbers in the code is a bad idea, using a macro is better.

Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Dan Walsh <dwalsh@redhat.com>
This commit is contained in:
Russell Coker 2012-03-26 15:57:49 +02:00 committed by Eric Paris
parent e55a295b1d
commit 38e93bad1f
1 changed files with 2 additions and 2 deletions

View File

@ -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);