linux-pam/xtests/tst-pam_limits1.sh
Thorsten Kukuk eca9894caa 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.
2007-06-26 10:44:28 +00:00

8 lines
134 B
Bash
Executable File

#!/bin/bash
/usr/sbin/useradd -p '!!' tstpamlimits
./tst-pam_limits1
RET=$?
/usr/sbin/userdel -r tstpamlimits 2> /dev/null
exit $RET