Make sure default privset remains available, fixes various crashes
with default/invalid privsets and rehashing.
This commit is contained in:
parent
9a7ab95b89
commit
a1d2fafd55
1 changed files with 4 additions and 0 deletions
|
@ -167,6 +167,10 @@ privilegeset_mark_all_illegal(void)
|
||||||
{
|
{
|
||||||
struct PrivilegeSet *set = (struct PrivilegeSet *) iter->data;
|
struct PrivilegeSet *set = (struct PrivilegeSet *) iter->data;
|
||||||
|
|
||||||
|
/* the "default" privset is special and must remain available */
|
||||||
|
if (!strcmp(set->name, "default"))
|
||||||
|
continue;
|
||||||
|
|
||||||
set->status |= CONF_ILLEGAL;
|
set->status |= CONF_ILLEGAL;
|
||||||
/* but do not free it yet */
|
/* but do not free it yet */
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue