From 950be7d1417fd7ca7d702b36afd0cf9f7fe83ce5 Mon Sep 17 00:00:00 2001 From: Brian Schwind Date: Mon, 1 Jul 2024 09:59:10 +0900 Subject: [PATCH] Reformatted & repositioned and improved doc about selinux --- README.md | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index aa9cec3..272c978 100644 --- a/README.md +++ b/README.md @@ -226,20 +226,18 @@ Note that you'll be responsible for updating manually. ## Development +### Cargo build feature for SELinux + +If your target system uses SELinux, you will want to enable the 'selinux' feature when building the innernet binary. +This will ensure that innernet maintains the correct selinux context on the /etc/hosts file when adding hosts. To do so add ```--features selinux``` to the ```cargo build``` options. +The `selinux-devel` package will need to be installed for the correct headers. + ### `innernet-server` Build dependencies - `rustc` / `cargo` (version 1.50.0 or higher) - `libclang` (see more info at [https://crates.io/crates/clang-sys](https://crates.io/crates/clang-sys)) - `libsqlite3` -### Cargo build feature for SELinux - -If your target system uses SELinux, you will want to enable the -'selinux' feature when building the innernet binary. This will ensure -that innernet maintains the correct selinux context on the /etc/hosts -file when adding hosts. To do so add ```--features selinux``` to the -```cargo build``` options. - Build: ```sh