aboutsummaryrefslogtreecommitdiff
path: root/xtests/tst-pam_limits1.sh
diff options
context:
space:
mode:
authorThorsten Kukuk <kukuk@thkukuk.de>2007-06-26 10:44:28 +0000
committerThorsten Kukuk <kukuk@thkukuk.de>2007-06-26 10:44:28 +0000
commiteca9894caa0f520e89ab608235996940e08e742e (patch)
tree5cfc2e6a7079a3ff23d99e3c9f8d6ffc674ce849 /xtests/tst-pam_limits1.sh
parentdd80f758c4772b8bebb2fc3335bf3457ab1eb7ca (diff)
downloadpam-eca9894caa0f520e89ab608235996940e08e742e.tar.gz
pam-eca9894caa0f520e89ab608235996940e08e742e.tar.bz2
pam-eca9894caa0f520e89ab608235996940e08e742e.zip
Relevant BUGIDs:
Purpose of commit: bugfix Commit summary: --------------- 2007-06-26 Thorsten Kukuk <kukuk@thkukuk.de> * 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.
Diffstat (limited to 'xtests/tst-pam_limits1.sh')
-rwxr-xr-xxtests/tst-pam_limits1.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/xtests/tst-pam_limits1.sh b/xtests/tst-pam_limits1.sh
new file mode 100755
index 00000000..4faa8223
--- /dev/null
+++ b/xtests/tst-pam_limits1.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+/usr/sbin/useradd -p '!!' tstpamlimits
+./tst-pam_limits1
+RET=$?
+/usr/sbin/userdel -r tstpamlimits 2> /dev/null
+exit $RET