aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2024-09-01 02:00:00 +0200
committerTobias Geerinckx-Rice <me@tobias.gr>2024-09-01 02:00:00 +0200
commit76cb23c117e25eaec8f177076bd4eaa10e800672 (patch)
treeb3c733c22063d6f63d0d6b71abe517e99878207d
parent876c343bbfe043dfc1b04cecaeed1e374843f4ed (diff)
downloadguix-76cb23c117e25eaec8f177076bd4eaa10e800672.tar
guix-76cb23c117e25eaec8f177076bd4eaa10e800672.tar.gz
services: screen-locker: Migrate to (gnu system privilege).
* gnu/services/xorg.scm (screen-locker-setuid-programs): Rename from this… (screen-locker-privileged-programs): …to this. Use <privileged-program>. (screen-locker-service-type): Extend the PRIVILEGED-PROGRAM-SERVICE-TYPE. Change-Id: Icbd891def4fc90ed5365702731f009dec358c19e
-rw-r--r--gnu/services/xorg.scm14
1 files changed, 8 insertions, 6 deletions
diff --git a/gnu/services/xorg.scm b/gnu/services/xorg.scm
index e7d8922d76..eff1c9354b 100644
--- a/gnu/services/xorg.scm
+++ b/gnu/services/xorg.scm
@@ -38,9 +38,9 @@
#:use-module (gnu services)
#:use-module (gnu services configuration)
#:use-module (gnu services shepherd)
- #:use-module (gnu system pam)
- #:use-module (gnu system setuid)
#:use-module (gnu system keyboard)
+ #:use-module (gnu system pam)
+ #:use-module (gnu system privilege)
#:use-module (gnu services base)
#:use-module (gnu services dbus)
#:use-module (gnu packages base)
@@ -847,11 +847,13 @@ reboot_cmd " shepherd "/sbin/reboot\n"
allow-empty-password?))
'())))
-(define (screen-locker-setuid-programs config)
+(define (screen-locker-privileged-programs config)
(match-record config <screen-locker-configuration>
(name program using-setuid?)
(if using-setuid?
- (list (file-like->setuid-program program))
+ (list (privileged-program
+ (program program)
+ (setuid? #t)))
'())))
(define screen-locker-service-type
@@ -859,8 +861,8 @@ reboot_cmd " shepherd "/sbin/reboot\n"
(extensions
(list (service-extension pam-root-service-type
screen-locker-pam-services)
- (service-extension setuid-program-service-type
- screen-locker-setuid-programs)))
+ (service-extension privileged-program-service-type
+ screen-locker-privileged-programs)))
(description
"Allow the given program to be used as a screen locker for
the graphical server by making it setuid-root, so it can authenticate users,