[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/05: doc: Use a better setuid example.
From: |
guix-commits |
Subject: |
05/05: doc: Use a better setuid example. |
Date: |
Fri, 7 Jan 2022 15:44:51 -0500 (EST) |
nckx pushed a commit to branch master
in repository guix.
commit 2dfbd03a609a5781aa1391639526e9029b01c392
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Fri Jan 7 18:27:56 2022 +0100
doc: Use a better setuid example.
nmtui does not benefit from being setuid. Oops.
* doc/guix.texi (Setuid Programs): Replace network-manager's /bin/nmtui
with nfs-utils' /sbin/mount.nfs. Change a @code{} to a @command{}.
---
doc/guix.texi | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/doc/guix.texi b/doc/guix.texi
index 1a78774777..fb2afd9399 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -50,7 +50,7 @@ Copyright @copyright{} 2017, 2021 Christine Lemmer-Webber@*
Copyright @copyright{} 2017, 2018, 2019, 2020, 2021 Marius Bakke@*
Copyright @copyright{} 2017, 2019, 2020 Hartmut Goebel@*
Copyright @copyright{} 2017, 2019, 2020, 2021 Maxim Cournoyer@*
-Copyright @copyright{} 2017, 2018, 2019, 2020, 2021 Tobias Geerinckx-Rice@*
+Copyright @copyright{} 2017–2022 Tobias Geerinckx-Rice@*
Copyright @copyright{} 2017 George Clemmer@*
Copyright @copyright{} 2017 Andy Wingo@*
Copyright @copyright{} 2017, 2018, 2019, 2020 Arun Isaac@*
@@ -34077,23 +34077,23 @@ should be setuid root.
The @code{setuid-programs} field of an @code{operating-system}
declaration contains a list of @code{<setuid-program>} denoting the
names of programs to have a setuid or setgid bit set (@pxref{Using the
-Configuration System}). For instance, the @command{nmtui} program,
-which is part of the NetworkManager package, with a setuid root can be
+Configuration System}). For instance, the @command{mount.nfs} program,
+which is part of the nfs-utils package, with a setuid root can be
designated like this:
@example
(setuid-program
- (program (file-append network-manager "/bin/nmtui")))
+ (program (file-append nfs-utils "/sbin/mount.nfs")))
@end example
-And then, to make @code{nmtui} setuid on your system, add the previous
-example to your operating system declaration by appending it to
+And then, to make @command{mount.nfs} setuid on your system, add the
+previous example to your operating system declaration by appending it to
@code{%setuid-programs} like this:
@example
(setuid-programs
(append (list (setuid-program
- (program (file-append network-manager "/bin/nmtui"))))
+ (program (file-append nfs-utils "/sbin/mount.nfs"))))
%setuid-programs))
@end example