From 28b477cb2e5d9185da16f305caff15809dfa06f3 Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Sun, 26 Dec 2021 22:17:01 -0500 Subject: doc: Give a complete example of adding setuid programs. * doc/guix.texi (Setuid Programs): Give a complete example of how to use SETUID-PROGRAM. --- doc/guix.texi | 10 ++++++++++ 1 file changed, 10 insertions(+) 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. -- cgit v1.2.3