1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-08 11:16:47 +00:00
webvirtcloud/conf
catborise 8dfe4d7713 fix(gstfsd): a key added to an SELinux guest gets the guest's labels
Files that libguestfs creates have no SELinux label. On an enforcing
guest (RHEL, Rocky, Alma, Fedora) sshd may not read the unlabeled
/root/.ssh/authorized_keys, so a key added from the panel did not let
anyone log in ("avc: denied { read } ... unlabeled_t").

After writing a key, gstfsd now relabels /root/.ssh with the guest's own
file contexts (/etc/selinux/<SELINUXTYPE>/contexts/files/file_contexts),
as virt-customize does. Guests without an SELinux policy or with SELinux
disabled are left as they are. If the guest needs labels but the host's
libguestfs cannot set them, the request fails before anything is written.
A root password needs no labelling: /etc/shadow keeps its file and label.
2026-10-08 16:19:24 +03:00
..
daemon fix(gstfsd): a key added to an SELinux guest gets the guest's labels 2026-10-08 16:19:24 +03:00
nginx fix(static): collectstatic writes to staticfiles/, and its output is no longer committed 2026-10-07 16:31:56 +03:00
runit fix(docker): the database, secret key and settings are private to the app user in the container 2026-10-07 18:48:28 +03:00
supervisor conf(gstfsd): show how to allow a remote bind in supervisor and systemd 2026-10-02 23:10:04 +03:00
systemd conf(gstfsd): show how to allow a remote bind in supervisor and systemd 2026-10-02 23:10:04 +03:00
install-lib.sh fix(settings): ALLOWED_HOSTS lists the server's names instead of accepting any host 2026-10-07 16:31:51 +03:00
requirements.txt feat(settings): database (PostgreSQL) and SMTP are configurable from the environment 2026-10-07 16:31:56 +03:00
test-vm.xml test(instances): isolate the live libvirt suite on shared hosts 2026-10-04 01:08:11 +03:00
test_install_lib.sh fix(settings): ALLOWED_HOSTS lists the server's names instead of accepting any host 2026-10-07 16:31:51 +03:00