mirror of
https://https.git.savannah.gnu.org/git/guix.git/
synced 2025-07-17 12:30:38 +02:00
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
This commit is contained in:
parent
67f4a3ddfd
commit
fb1a8642ee
1 changed files with 2 additions and 5 deletions
|
@ -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"))))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue