From 543e122a80e25e9597cff418b837e214114bad1f Mon Sep 17 00:00:00 2001 From: Stefan Schubert Date: Wed, 16 Feb 2022 11:51:35 +0100 Subject: pam_namespace: use vendor specific namespace.conf and namespace.init as fallback Use the vendor directory as fallback for a distribution provided default config and scripts if there is no configuration in /etc. pam_namespace.c: Take care about the fallback configuration in vendor directory. pam_namespace.h: Define vendor specific files and directories. pam_namespace.8.xml: Add description for vendor directories and files. namespace.conf.5.xml: Add description for vendor directories and files. --- modules/pam_namespace/pam_namespace.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules/pam_namespace/pam_namespace.h') diff --git a/modules/pam_namespace/pam_namespace.h b/modules/pam_namespace/pam_namespace.h index 169bd59f..0b974ea7 100644 --- a/modules/pam_namespace/pam_namespace.h +++ b/modules/pam_namespace/pam_namespace.h @@ -94,6 +94,12 @@ #define NAMESPACE_INIT_SCRIPT (SCONFIGDIR "/namespace.init") #define NAMESPACE_D_DIR (SCONFIGDIR "/namespace.d/") #define NAMESPACE_D_GLOB (SCONFIGDIR "/namespace.d/*.conf") +#ifdef VENDOR_SCONFIGDIR +#define VENDOR_NAMESPACE_INIT_SCRIPT (VENDOR_SCONFIGDIR "/namespace.init") +#define VENDOR_PAM_NAMESPACE_CONFIG (VENDOR_SCONFIGDIR "/namespace.conf") +#define VENDOR_NAMESPACE_D_DIR (VENDOR_SCONFIGDIR "/namespace.d/") +#define VENDOR_NAMESPACE_D_GLOB (VENDOR_SCONFIGDIR "/namespace.d/*.conf") +#endif /* module flags */ #define PAMNS_DEBUG 0x00000100 /* Running in debug mode */ -- cgit v1.2.3