1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-20 09:10:30 +02:00

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

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.