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:
parent
e55a295b1d
commit
38e93bad1f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue