supervise-daemon: add pam service file

This commit is contained in:
William Hubbs 2016-05-13 12:05:23 -05:00
parent b3a04e797e
commit 3b5a8b331e
3 changed files with 8 additions and 1 deletions

View File

@ -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::

View File

@ -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)

View 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