diff --git a/src/finit.h b/src/finit.h index b65c8f81..c0f4c8eb 100644 --- a/src/finit.h +++ b/src/finit.h @@ -54,6 +54,11 @@ #define FINIT_CGPATH "/sys/fs/cgroup" #endif +/* Prevent users from logging in at critical stages */ +#ifndef FINIT_NOLOGIN_PATH +#define FINIT_NOLOGIN_PATH _PATH_NOLOGIN +#endif + /* To use these, include config.h, or define FINIT_EXECPATH_ */ #define _PATH_LOGIT FINIT_EXECPATH_ "/logit" #define _PATH_RUNPARTS FINIT_EXECPATH_ "/runparts" diff --git a/src/sm.c b/src/sm.c index a9513004..43facdfb 100644 --- a/src/sm.c +++ b/src/sm.c @@ -57,9 +57,6 @@ static struct { int in_reload; /* Set when waiting for all processes to be halted */ } sm; -#ifndef FINIT_NOLOGIN_PATH -#define FINIT_NOLOGIN_PATH _PATH_NOLOGIN /* Stop user logging in. */ -#endif /* * Wait for system bootstrap to complete, all SVC_TYPE_RUNTASK must be