From eca9894caa0f520e89ab608235996940e08e742e Mon Sep 17 00:00:00 2001 From: Thorsten Kukuk Date: Tue, 26 Jun 2007 10:44:28 +0000 Subject: Relevant BUGIDs: Purpose of commit: bugfix Commit summary: --------------- 2007-06-26 Thorsten Kukuk * modules/pam_limits/pam_limits.c (process_limit): Check upper and lower limit of nice value, fix off-by-one in conversation to rlim_t. * xtests/Makefile.am: Add new pam_limits test case. * xtests/limits.conf: New, config file for test case. * xtests/pam_limits1.c: New, test case for RLIMIT_NICE. * xtests/pam_limits1.sh: Likewise. * xtests/pam_limits1.pamd: Likewise. --- xtests/run-xtests.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xtests/run-xtests.sh') diff --git a/xtests/run-xtests.sh b/xtests/run-xtests.sh index 9670bd7a..76daba22 100755 --- a/xtests/run-xtests.sh +++ b/xtests/run-xtests.sh @@ -18,6 +18,8 @@ all=0 mkdir -p /etc/security cp /etc/security/access.conf /etc/security/access.conf-pam-xtests install -m 644 "${SRCDIR}"/access.conf /etc/security/access.conf +cp /etc/security/limits.conf /etc/security/limits.conf-pam-xtests +install -m 644 "${SRCDIR}"/limits.conf /etc/security/limits.conf for testname in $XTESTS ; do install -m 644 "${SRCDIR}"/$testname.pamd /etc/pam.d/$testname if test -x "${SRCDIR}"/$testname.sh ; then @@ -36,6 +38,7 @@ for testname in $XTESTS ; do rm -f /etc/pam.d/$testname done mv /etc/security/access.conf-pam-xtests /etc/security/access.conf +mv /etc/security/limits.conf-pam-xtests /etc/security/limits.conf if test "$failed" -ne 0; then echo "===================" echo "$failed of $all tests failed" -- cgit v1.2.3