supervise-daemon: add pam service file
This commit is contained in:
parent
b3a04e797e
commit
3b5a8b331e
@ -75,6 +75,7 @@ install: all
|
||||
if test "${MKPAM}" = pam; then \
|
||||
${INSTALL} -d ${DESTDIR}${PAMDIR}; \
|
||||
${INSTALL} -m ${PAMMODE} start-stop-daemon.pam ${DESTDIR}${PAMDIR}/start-stop-daemon; \
|
||||
${INSTALL} -m ${PAMMODE} supervise-daemon.pam ${DESTDIR}${PAMDIR}/supervise-daemon; \
|
||||
fi
|
||||
|
||||
check test::
|
||||
|
@ -202,7 +202,7 @@ static void child_process(char *exec, char **argv)
|
||||
|
||||
#ifdef HAVE_PAM
|
||||
if (changeuser != NULL) {
|
||||
pamr = pam_start("start-stop-daemon",
|
||||
pamr = pam_start("supervise-daemon",
|
||||
changeuser, &conv, &pamh);
|
||||
|
||||
if (pamr == PAM_SUCCESS)
|
||||
|
6
src/rc/supervise-daemon.pam
Normal file
6
src/rc/supervise-daemon.pam
Normal file
@ -0,0 +1,6 @@
|
||||
#%PAM-1.0
|
||||
|
||||
auth required pam_permit.so
|
||||
account required pam_permit.so
|
||||
password required pam_deny.so
|
||||
session optional pam_limits.so
|
Loading…
Reference in New Issue
Block a user