mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05: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:
parent
c9c7b0e127
commit
28b477cb2e
1 changed files with 10 additions and 0 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in a new issue