diff --git a/gnu/services/desktop.scm b/gnu/services/desktop.scm index 9c4d2a1822..b8dc4a4912 100644 --- a/gnu/services/desktop.scm +++ b/gnu/services/desktop.scm @@ -11,7 +11,7 @@ ;;; Copyright © 2017, 2019 Christopher Baines ;;; Copyright © 2019 Tim Gesthuizen ;;; Copyright © 2019 David Wilson -;;; Copyright © 2020 Tobias Geerinckx-Rice +;;; Copyright © 2020, 2024 Tobias Geerinckx-Rice ;;; Copyright © 2020 Reza Alizadeh Majd ;;; Copyright © 2021 Brice Waegeneire ;;; Copyright © 2021, 2022 muradm @@ -49,7 +49,7 @@ (define-module (gnu services desktop) file-system)) #:autoload (gnu services sddm) (sddm-service-type) #:use-module (gnu system) - #:use-module (gnu system setuid) + #:use-module (gnu system privilege) #:use-module (gnu system shadow) #:use-module (gnu system uuid) #:use-module (gnu system pam) @@ -1732,11 +1732,12 @@ (define-record-type* (enlightenment enlightenment-package (default enlightenment))) -(define (enlightenment-setuid-programs enlightenment-desktop-configuration) +(define (enlightenment-privileged-programs enlightenment-desktop-configuration) (match-record enlightenment-desktop-configuration (enlightenment) - (map file-like->setuid-program + (map (lambda (program) (privileged-program (program program) + (setuid? #t))) (list (file-append enlightenment "/lib/enlightenment/utils/enlightenment_sys") (file-append enlightenment @@ -1758,8 +1759,8 @@ (define enlightenment-desktop-service-type (package-direct-input-selector "ddcutil") enlightenment-package)) - (service-extension setuid-program-service-type - enlightenment-setuid-programs) + (service-extension privileged-program-service-type + enlightenment-privileged-programs) (service-extension profile-service-type (compose list enlightenment-package)))) @@ -1767,7 +1768,7 @@ (define enlightenment-desktop-service-type (description "Return a service that adds the @code{enlightenment} package to the system profile, and extends dbus with the ability for @code{efl} to generate -thumbnails and makes setuid the programs which enlightenment needs to function +thumbnails and privileges the programs which enlightenment needs to function as expected."))) ;;; @@ -2053,8 +2054,9 @@ (define* (desktop-services-for-system #:optional ;; without root. (simple-service 'mount-setuid-helpers setuid-program-service-type (map (lambda (program) - (setuid-program - (program program))) + (privileged-program + (program program) + (setuid? #t))) (list (file-append nfs-utils "/sbin/mount.nfs") (file-append ntfs-3g "/sbin/mount.ntfs-3g"))))