66 |
|
|
67 |
anubis_rc_sections[anubis_rc_numsections].name = name; |
anubis_rc_sections[anubis_rc_numsections].name = name; |
68 |
anubis_rc_sections[anubis_rc_numsections].allow_prog = 0; |
anubis_rc_sections[anubis_rc_numsections].allow_prog = 0; |
69 |
|
anubis_rc_sections[anubis_rc_numsections].prio = prio_user_only; |
70 |
anubis_rc_sections[anubis_rc_numsections].child = NULL; |
anubis_rc_sections[anubis_rc_numsections].child = NULL; |
71 |
return &anubis_rc_sections[anubis_rc_numsections++]; |
return &anubis_rc_sections[anubis_rc_numsections++]; |
72 |
} |
} |
99 |
switch (method) { |
switch (method) { |
100 |
case CF_SUPERVISOR: |
case CF_SUPERVISOR: |
101 |
case CF_INIT: |
case CF_INIT: |
102 |
|
rc_section_list_destroy(&parse_tree); |
103 |
if (topt & T_ALTRC) { |
if (topt & T_ALTRC) { |
104 |
rcfile = strdup(options.altrc); |
rcfile = strdup(options.altrc); |
105 |
} else if (check_superuser()) |
} else if (check_superuser()) |
210 |
case KW_RULE_PRIORITY: |
case KW_RULE_PRIORITY: |
211 |
if (strcasecmp(arg, "user") == 0) |
if (strcasecmp(arg, "user") == 0) |
212 |
anubis_section_set_prio("RULE", prio_user); |
anubis_section_set_prio("RULE", prio_user); |
213 |
|
else if (strcasecmp(arg, "user-only") == 0) |
214 |
|
anubis_section_set_prio("RULE", prio_user_only); |
215 |
else if (strcasecmp(arg, "system") == 0) |
else if (strcasecmp(arg, "system") == 0) |
216 |
anubis_section_set_prio("RULE", prio_system); |
anubis_section_set_prio("RULE", prio_system); |
217 |
else if (strcasecmp(arg, "override") == 0) |
else if (strcasecmp(arg, "system-only") == 0) |
218 |
anubis_section_set_prio("RULE", prio_override); |
anubis_section_set_prio("RULE", prio_system_only); |
219 |
else |
else |
220 |
return RC_KW_ERROR; |
return RC_KW_ERROR; |
221 |
break; |
break; |