176 |
#define KW_READ_ENTIRE_BODY 12 |
#define KW_READ_ENTIRE_BODY 12 |
177 |
#define KW_DROP_UNKNOWN_USER 13 |
#define KW_DROP_UNKNOWN_USER 13 |
178 |
#define KW_RULE_PRIORITY 14 |
#define KW_RULE_PRIORITY 14 |
179 |
|
#define KW_CONTROL_PRIORITY 15 |
180 |
|
|
181 |
char ** |
char ** |
182 |
list_to_argv(LIST *list) |
list_to_argv(LIST *list) |
220 |
else |
else |
221 |
return RC_KW_ERROR; |
return RC_KW_ERROR; |
222 |
break; |
break; |
223 |
|
|
224 |
|
case KW_CONTROL_PRIORITY: |
225 |
|
if (strcasecmp(arg, "user") == 0) |
226 |
|
anubis_section_set_prio("CONTROL", prio_user); |
227 |
|
else if (strcasecmp(arg, "system") == 0) |
228 |
|
anubis_section_set_prio("CONTROL", prio_system); |
229 |
|
else |
230 |
|
return RC_KW_ERROR; |
231 |
|
break; |
232 |
|
|
233 |
case KW_TERMLEVEL: |
case KW_TERMLEVEL: |
234 |
if (strcmp("silent", arg) == 0) |
if (strcmp("silent", arg) == 0) |
333 |
static struct rc_kwdef init_kw[] = { |
static struct rc_kwdef init_kw[] = { |
334 |
{ "bind", KW_BIND }, |
{ "bind", KW_BIND }, |
335 |
{ "rule-priority", KW_RULE_PRIORITY }, |
{ "rule-priority", KW_RULE_PRIORITY }, |
336 |
|
{ "control-priority", KW_CONTROL_PRIORITY }, |
337 |
{ NULL }, |
{ NULL }, |
338 |
}; |
}; |
339 |
|
|
463 |
control_section_init(void) |
control_section_init(void) |
464 |
{ |
{ |
465 |
struct rc_secdef *sp = anubis_add_section("CONTROL"); |
struct rc_secdef *sp = anubis_add_section("CONTROL"); |
466 |
|
sp->prio = prio_system; |
467 |
rc_secdef_add_child(sp, &init_sect_child); |
rc_secdef_add_child(sp, &init_sect_child); |
468 |
rc_secdef_add_child(sp, &init_supervisor_sect_child); |
rc_secdef_add_child(sp, &init_supervisor_sect_child); |
469 |
rc_secdef_add_child(sp, &client_sect_child); |
rc_secdef_add_child(sp, &client_sect_child); |