doc: Give a complete example of adding setuid programs.

* doc/guix.texi (Setuid Programs): Give a complete example of how to use
SETUID-PROGRAM.
This commit is contained in:
Leo Famulari 2021-12-26 22:17:01 -05:00
parent c9c7b0e127
commit 28b477cb2e
No known key found for this signature in database
GPG Key ID: 2646FA30BACA7F08
1 changed files with 10 additions and 0 deletions

View File

@ -34005,6 +34005,16 @@ designated like this:
(program (file-append shadow "/bin/passwd")))
@end example
And then it can be added to your operating system declaration by
appending it to @code{%setuid-programs} like this:
@example
(setuid-programs
(append (list (setuid-program
(program (file-append swaylock "/bin/swaylock"))))
%setuid-programs))
@end example
@deftp {Data Type} setuid-program
This data type represents a program with a setuid or setgid bit set.