guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/04: system: Add 'mount' and 'umount' to '%setuid-programs'.


From: guix-commits
Subject: 01/04: system: Add 'mount' and 'umount' to '%setuid-programs'.
Date: Sun, 6 Oct 2019 08:45:43 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 19944227528502e3619a6d1557bc735224f6fef6
Author: Ludovic Courtès <address@hidden>
Date:   Sun Oct 6 11:44:06 2019 +0200

    system: Add 'mount' and 'umount' to '%setuid-programs'.
    
    Fixes <https://bugs.gnu.org/37569>.
    Reported by Diego Nicola Barbato <address@hidden>.
    
    * gnu/system.scm (%setuid-programs): Add "mount" and "umount" from
    util-linux.
---
 gnu/system.scm | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gnu/system.scm b/gnu/system.scm
index c860c22..c57b302 100644
--- a/gnu/system.scm
+++ b/gnu/system.scm
@@ -825,7 +825,12 @@ use 'plain-file' instead~%")
           (file-append inetutils "/bin/ping6")
           (file-append sudo "/bin/sudo")
           (file-append sudo "/bin/sudoedit")
-          (file-append fuse "/bin/fusermount"))))
+          (file-append fuse "/bin/fusermount")
+
+          ;; To allow mounts with the "user" option, "mount" and "umount" must
+          ;; be setuid-root.
+          (file-append util-linux "/bin/mount")
+          (file-append util-linux "/bin/umount"))))
 
 (define %sudoers-specification
   ;; Default /etc/sudoers contents: 'root' and all members of the 'wheel'



reply via email to

[Prev in Thread] Current Thread [Next in Thread]