[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/09: doc: Tweak SELinux instructions.
From: |
guix-commits |
Subject: |
03/09: doc: Tweak SELinux instructions. |
Date: |
Thu, 25 May 2023 06:52:51 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit b59c18f761fc2d18e23fd121c6f6d1f559c6daa7
Author: Ludovic Courtès <ludovic.courtes@inria.fr>
AuthorDate: Thu May 25 11:55:10 2023 +0200
doc: Tweak SELinux instructions.
* doc/guix.texi (SELinux Support): Add note about 'guix-install.sh'.
Provide the absolute file name of 'guix-daemon.cil'. Wrap important
commands in @example. Suggest relabeling just /gnu and /var/guix
instead of all of /. Add "systemctl restart guix-daemon".
---
doc/guix.texi | 27 ++++++++++++++++++++++-----
1 file changed, 22 insertions(+), 5 deletions(-)
diff --git a/doc/guix.texi b/doc/guix.texi
index be02ac5deb..31dc33fb97 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -1559,16 +1559,33 @@ be used on Guix System.
@subsubsection Installing the SELinux policy
@cindex SELinux, policy installation
+
+@quotation Note
+The @code{guix-install.sh} binary installation script offers to perform
+the steps below for you (@pxref{Binary Installation}).
+@end quotation
+
To install the policy run this command as root:
@example
-semodule -i etc/guix-daemon.cil
+semodule -i
/var/guix/profiles/per-user/root/current-guix/share/selinux/guix-daemon.cil
+@end example
+
+Then, as root, relabel the file system, possibly after making it
+writable:
+
+@example
+mount -o remount,rw /gnu/store
+restorecon -R /gnu /var/guix
@end example
-Then relabel the file system with @code{restorecon -vR /} or by a
-different mechanism provided by your system. You may need to remount
-@file{/gnu/store} to make it writable first, e.g. with @code{mount -o
-remount,rw /gnu/store}.
+At this point you can start or restart @command{guix-daemon}; on a
+distribution that uses systemd as its service manager, you can do that
+with:
+
+@example
+systemctl restart guix-daemon
+@end example
Once the policy is installed, the file system has been relabeled, and
the daemon has been restarted, it should be running in the
- branch master updated (0b0c2ef638 -> a9cde26133), guix-commits, 2023/05/25
- 02/09: guix-install.sh: Install SELinux policy and relabel file systems if needed., guix-commits, 2023/05/25
- 01/09: etc: SELinux: Update policy file., guix-commits, 2023/05/25
- 03/09: doc: Tweak SELinux instructions.,
guix-commits <=
- 04/09: self: Install 'guix-daemon.cil'., guix-commits, 2023/05/25
- 05/09: gnu: encfs: Depend on OpenSSL v1.1 to fix test segfault., guix-commits, 2023/05/25
- 06/09: gnu: yt-dlp: Fix substitution for ffmpeg path., guix-commits, 2023/05/25
- 08/09: gnu: tinyproxy: Update to 1.11.1., guix-commits, 2023/05/25
- 09/09: gnu: Add mouseloupe., guix-commits, 2023/05/25
- 07/09: gnu: Add dialect., guix-commits, 2023/05/25