9 #ifndef CONFIG_SECURITY_TOMOYO_OMIT_USERSPACE_LOADER
14 static const char *tomoyo_loader;
23 static int __init tomoyo_loader_setup(
char *
str)
29 __setup(
"TOMOYO_loader=", tomoyo_loader_setup);
36 static bool tomoyo_policy_loader_exists(
void)
40 tomoyo_loader = CONFIG_SECURITY_TOMOYO_POLICY_LOADER;
43 "as %s does not exist.\n", tomoyo_loader);
53 static const char *tomoyo_trigger;
62 static int __init tomoyo_trigger_setup(
char *
str)
68 __setup(
"TOMOYO_trigger=", tomoyo_trigger_setup);
92 tomoyo_trigger = CONFIG_SECURITY_TOMOYO_ACTIVATION_TRIGGER;
93 if (
strcmp(filename, tomoyo_trigger))
95 if (!tomoyo_policy_loader_exists())
100 argv[0] = (
char *) tomoyo_loader;
103 envp[1] =
"PATH=/sbin:/bin:/usr/sbin:/usr/bin";