innernet/client
Ryan Gonzalez 9011c36da6 hostsfile: Copy the SELinux context to the temp file before overwrite
On SELinux-enabled systems, /etc/hosts has a different type `net_conf_t`
than the other files in /etc, so the temporary file that overwrites it
ends up with the wrong context, resulting in many system services
becoming unable to access the file. To fix this, manually look up the
context /etc/hosts has and copy it to the temporary file before
the rename.

In order to avoid depending on libselinux on systems that don't use it,
this support is gated behind the new "selinux" feature. It *is*
installed and enabled in the Dockerfile, however, in order to ensure
that it still builds.
2024-05-04 19:08:56 +09:00
..
.rpm build: drop 'inn' symlink from deb/rpm packaging (#175) 2023-06-02 08:45:40 +02:00
src Add a new client / server command to rename CIDR (#310) 2024-04-23 06:12:36 +09:00
.gitignore kabloomers. public release v1.0.0 2021-03-30 02:47:34 +09:00
Cargo.toml hostsfile: Copy the SELinux context to the temp file before overwrite 2024-05-04 19:08:56 +09:00
innernet.target systemd: Add file innernet.target 2021-04-06 23:22:28 +09:00
innernet@.service client, server systemd units: make Restart=always truly respected (#184) 2022-01-12 04:58:28 +09:00