Reformatted & repositioned and improved doc about selinux

pull/273/head
Brian Schwind 2024-07-01 09:59:10 +09:00
parent 817376bdfa
commit 950be7d141
1 changed files with 6 additions and 8 deletions

View File

@ -226,20 +226,18 @@ Note that you'll be responsible for updating manually.
## Development ## 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 ### `innernet-server` Build dependencies
- `rustc` / `cargo` (version 1.50.0 or higher) - `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)) - `libclang` (see more info at [https://crates.io/crates/clang-sys](https://crates.io/crates/clang-sys))
- `libsqlite3` - `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: Build:
```sh ```sh