diff options
author | Leo Famulari <leo@famulari.name> | 2021-12-26 22:17:01 -0500 |
---|---|---|
committer | Leo Famulari <leo@famulari.name> | 2021-12-26 22:23:48 -0500 |
commit | 28b477cb2e5d9185da16f305caff15809dfa06f3 (patch) | |
tree | 893294c6dcf9ed4d3b37548d7d97e78751f42ba7 | |
parent | c9c7b0e1277d378c4948c2db76f27f690ad36db9 (diff) | |
download | guix-28b477cb2e5d9185da16f305caff15809dfa06f3.tar guix-28b477cb2e5d9185da16f305caff15809dfa06f3.tar.gz |
doc: Give a complete example of adding setuid programs.
* doc/guix.texi (Setuid Programs): Give a complete example of how to use
SETUID-PROGRAM.
-rw-r--r-- | doc/guix.texi | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi index 41fee3524c..ebfcfee7f7 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -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. |