mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05: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 @@ (define* (desktop-services-for-system #:optional
|
|||
|
||||
;; 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…
Reference in a new issue