summary refs log tree commit diff
path: root/doc/guix.texi
diff options
context:
space:
mode:
authorLeo Famulari <leo@famulari.name>2021-12-26 22:17:01 -0500
committerLeo Famulari <leo@famulari.name>2021-12-26 22:23:48 -0500
commit28b477cb2e5d9185da16f305caff15809dfa06f3 (patch)
tree893294c6dcf9ed4d3b37548d7d97e78751f42ba7 /doc/guix.texi
parentc9c7b0e1277d378c4948c2db76f27f690ad36db9 (diff)
downloadguix-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.
Diffstat (limited to 'doc/guix.texi')
-rw-r--r--doc/guix.texi10
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.