services: pam-limits: Add sudo and sshd.

* gnu/services/base.scm (pam-limits-service-type): Add "sudo" and "sshd"
to the list.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Kiran Shila 2022-05-28 20:54:30 -07:00 committed by Ludovic Courtès
parent ce1276073b
commit 29f62a7f5a
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -1438,7 +1438,8 @@ (define pam-limits-service-type
(module "pam_limits.so")
(arguments '("conf=/etc/security/limits.conf")))))
(if (member (pam-service-name pam)
'("login" "su" "slim" "gdm-password" "sddm"))
'("login" "su" "slim" "gdm-password" "sddm"
"sudo" "sshd"))
(pam-service
(inherit pam)
(session (cons pam-limits