diff options
author | Stefan Schubert <schubi@suse.de> | 2022-02-16 11:51:35 +0100 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2022-06-30 09:48:52 +0000 |
commit | 543e122a80e25e9597cff418b837e214114bad1f (patch) | |
tree | 62c826f7198a6b5533144a690c0ad35c9141ea7b /modules/pam_namespace/pam_namespace.h | |
parent | 21affb5b1b90e3d0ac36556c5536ee81ef08aca4 (diff) | |
download | pam-543e122a80e25e9597cff418b837e214114bad1f.tar.gz pam-543e122a80e25e9597cff418b837e214114bad1f.tar.bz2 pam-543e122a80e25e9597cff418b837e214114bad1f.zip |
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.
Diffstat (limited to 'modules/pam_namespace/pam_namespace.h')
-rw-r--r-- | modules/pam_namespace/pam_namespace.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 */ |