aboutsummaryrefslogtreecommitdiff
path: root/tools/test/stress2/misc/quota11.sh
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2025-12-29 09:32:24 +0000
committerXin LI <delphij@FreeBSD.org>2026-01-21 02:47:16 +0000
commit12444a4da514e91fdf984b31e1691d042d5f88d2 (patch)
tree6f24db66e2f55eee23e00bf22e6910551f6f1d57 /tools/test/stress2/misc/quota11.sh
parent053449fa5c6c9fdbff1d1014482a5842bc860811 (diff)
cron: Implement full PAM session lifecycle for user jobsHEADmain
Extend PAM integration beyond account checks to include credential establishment and session management, allowing PAM modules to configure the execution environment for user cron jobs. Previously, cron only called pam_acct_mgmt() to verify account validity but immediately terminated the PAM handle before job execution. This prevented PAM modules from establishing sessions, setting credentials (e.g., Kerberos tickets), or exporting environment variables needed by jobs. The PAM handle now persists in the intermediate process throughout the job execution, enabling proper session open/close pairing. Credentials are established and sessions opened while still running as root, before dropping privileges in the grandchild. PAM environment variables are exported in the job process with user crontab variables taking precedence. A session rule (pam_permit.so) is added to /etc/pam.d/cron to enable session support without changing default behavior. Administrators can replace this with other modules as needed. System crontab entries continue to bypass all PAM operations. PR: bin/244844 Reviewed by: des MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D54415
Diffstat (limited to 'tools/test/stress2/misc/quota11.sh')
0 files changed, 0 insertions, 0 deletions