diff options
| author | Tobias Geerinckx-Rice <me@tobias.gr> | 2024-09-08 02:00:00 +0200 |
|---|---|---|
| committer | Tobias Geerinckx-Rice <me@tobias.gr> | 2024-09-08 02:00:00 +0200 |
| commit | fb1a8642ee783499f42d3e8d95c8601fa116606c (patch) | |
| tree | 14889ea95937311ba4c2180ef495bdc6cea67741 /gnu | |
| parent | 67f4a3ddfdea061b480fe13dd5d5d0ed31160130 (diff) | |
services: desktop: Migrate to (gnu system privilege).
* gnu/services/desktop.scm (desktop-services-for-system): Extend
PRIVILEGED-PROGRAM-SERVICE-TYPE rather than SETUID-PROGRAM-SERVICE-TYPE
and use the totally new FILE-LIKE->SETUID-PROGRAM.
Change-Id: Ia8cac67c8234657332390794a41d91e60f788d90
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/services/desktop.scm | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gnu/services/desktop.scm b/gnu/services/desktop.scm index 041a1aab0f3..274aeeef9bf 100644 --- a/gnu/services/desktop.scm +++ b/gnu/services/desktop.scm @@ -2051,11 +2051,8 @@ applications needing access to be root.") ;; Allow desktop users to also mount NTFS and NFS file systems ;; without root. - (simple-service 'mount-setuid-helpers setuid-program-service-type - (map (lambda (program) - (privileged-program - (program program) - (setuid? #t))) + (simple-service 'mount-setuid-helpers privileged-program-service-type + (map file-like->setuid-program (list (file-append nfs-utils "/sbin/mount.nfs") (file-append ntfs-3g "/sbin/mount.ntfs-3g")))) |
