From 0861373d1403e8e2fdd294ac422c9a36bd101ab1 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Sun, 6 Jul 2025 01:59:18 +0200 Subject: [PATCH] Minor, relocate path definition to finit.h This is where the other path definitions live. Signed-off-by: Joachim Wiberg --- src/finit.h | 5 +++++ src/sm.c | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) 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