[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/11: doc: Use @lisp and clarify 'setuid-program' examples.
From: |
guix-commits |
Subject: |
04/11: doc: Use @lisp and clarify 'setuid-program' examples. |
Date: |
Mon, 10 Jan 2022 16:29:46 -0500 (EST) |
lfam pushed a commit to branch wip-linux-libre-5.16
in repository guix.
commit 1b87dc2f2a897f5fe0b3f8984c2544335ac87b56
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Mon Jan 10 19:30:10 2022 +0100
doc: Use @lisp and clarify 'setuid-program' examples.
* doc/guix.texi (Setuid Programs): Use @lisp instead of @example. Add
scope for the 'setuid-programs' field snippet.
---
doc/guix.texi | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/doc/guix.texi b/doc/guix.texi
index 390c4347d6..cc89e55ec9 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -34123,21 +34123,23 @@ 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
+@lisp
(setuid-program
(program (file-append nfs-utils "/sbin/mount.nfs")))
-@end example
+@end lisp
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 nfs-utils "/sbin/mount.nfs"))))
- %setuid-programs))
-@end example
+@lisp
+(operating-systems
+ ;; Some fields omitted...
+ (setuid-programs
+ (append (list (setuid-program
+ (program (file-append nfs-utils "/sbin/mount.nfs")))
+ %setuid-programs))))
+@end lisp
@deftp {Data Type} setuid-program
This data type represents a program with a setuid or setgid bit set.
- branch wip-linux-libre-5.16 created (now 791150bca2), guix-commits, 2022/01/10
- 05/11: gnu: ungoogled-chromium: Remove input labels., guix-commits, 2022/01/10
- 04/11: doc: Use @lisp and clarify 'setuid-program' examples.,
guix-commits <=
- 01/11: doc: Fix typo., guix-commits, 2022/01/10
- 06/11: gnu: ungoogled-chromium: Remove obsolete substitution., guix-commits, 2022/01/10
- 11/11: WIP: Add linux-libre 5.16., guix-commits, 2022/01/10
- 02/11: guix hash: Allow '-r' as a non-deprecated alias., guix-commits, 2022/01/10
- 10/11: gnu: Go 1.17: Update to 1.17.6., guix-commits, 2022/01/10
- 08/11: gnu: ungoogled-chromium: Convert arguments to G-expression., guix-commits, 2022/01/10
- 03/11: news: Fix typos in French text., guix-commits, 2022/01/10
- 09/11: gnu: Go 1.16: Update to 1.16.13., guix-commits, 2022/01/10
- 07/11: gnu: ungoogled-chromium: Remove obsolete compiler flags., guix-commits, 2022/01/10