Skip to content

Commit

Permalink
Simplify SELinux instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
TommyTran732 authored Nov 12, 2024
1 parent 7b8f77e commit e7ef3a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
10 changes: 4 additions & 6 deletions fedora-minimal/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# Enable SELinux

To enable SELinux, do the following after you have run fedora-minimal.sh:
- Shutdown the VM
- Shutdown the VM.
- Run `qvm-features fedora-40-minimal selinux 1`.
- Start the minimal vm. Wait for it to shut itself down.
- Run `qvm-features fedora-40-minimal selinux 0`.
- Turn the VM on, remove `/.autorelabel`.
- Turn the VM off.
- Run `qvm-features fedora-40-minimal selinux 1`.
- Start the minimal VM.
- Edit /etc/sysconfig/selinux and change SELINUX mode to enforcing.
- Restart the VM.
3 changes: 1 addition & 2 deletions fedora-minimal/fedora-minimal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,4 @@ echo 'libhardened_malloc.so' | sudo tee /etc/ld.so.preload
sudo chmod 644 /etc/ld.so.preload

# Prepare for SELinux
sudo touch /.autorelabel
sudo sed -i 's/SELINUX=permissive/SELINUX=enforcing/' /etc/sysconfig/selinux
sudo touch /.autorelabel

0 comments on commit e7ef3a8

Please sign in to comment.