From 2dfbd03a609a5781aa1391639526e9029b01c392 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Fri, 7 Jan 2022 18:27:56 +0100 Subject: [PATCH] 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{} 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