guix-play/gnu
muradm f4f5ee6ad6
services: screen-locker-service-type: Configurable PAM and setuid.
screen-locker-service-type by default does both define PAM entry
and make program setuid binary. Normally both methods are
mutually exclusive, if binary has setuid set it does not really
needs PAM, otherway around also similar, if PAM is enabled
binary should not relay on setuid.

Recent swaylock package now compiled with PAM support. When PAM
support is compiled in, swaylock rejects executing if binary is
also setuid program.

This change turns screen-locker-configuration from strict
PAM AND setuid to more flexible PAM AND/OR setuid. Allowing
swaylock to be configured properly while supporting other
screen locker preferences.

* gnu/services/xorg.scm (screen-locker-configuration): Switch from
define-record-type to define-configuration.
[using-pam?]: New field to control PAM entry existence.
[using-setuid?]: New field to control setuid binary existence.
(screen-locker-pam-services): Should not make unix-pam-service if
using-pam? is set to #f.
(screen-locker-setuid-programs): Should not make program setuid
program if using-setuid? is set to #f.
(screen-locker-generate-doc): Internal function to generate
configuration documentation.
(screen-locker-service): Adapt to new screen-locker-configuration.
* gnu/services/desktop.scm (desktop-services-for-system): Adapt to
new screen-locker-configuration.
* doc/guix.texi: Reflect new changes to screen-locker-configuration.

Signed-off-by: Josselin Poiret <dev@jpoiret.xyz>
2023-06-04 10:33:55 +02:00
..
bootloader
build hurd-boot: Symlink /hurd before setting up translators. 2023-05-17 22:26:06 +02:00
home home: services: Add msmtp service. 2023-05-30 00:15:30 +02:00
installer installer: Filter out C.UTF-8 from the list of locales. 2023-04-30 23:11:09 +02:00
machine
packages gnu: mpd: Split outputs. 2023-06-04 08:20:14 +02:00
services services: screen-locker-service-type: Configurable PAM and setuid. 2023-06-04 10:33:55 +02:00
system system: pam: Change 'stop' method to return #f. 2023-05-21 01:04:39 +02:00
tests tests: Fix the Jami service system tests. 2023-05-25 10:17:32 -04:00
artwork.scm
bootloader.scm
ci.scm
compression.scm
home.scm
image.scm
installer.scm
local.mk gnu: d-feet: Fix build errors when using Meson 1.1.0. 2023-06-04 08:20:13 +02:00
machine.scm
packages.scm
services.scm services: Error in MODIFY-SERVICES when services don't exist 2023-06-02 16:23:03 +02:00
system.scm system: Fix reference to Hurd bug in comment. 2023-05-10 00:23:52 +02:00
tests.scm