Simplify SELinux instructions
This commit is contained in:
		@@ -1,10 +1,8 @@
 | 
				
			|||||||
# Enable SELinux
 | 
					# Enable SELinux
 | 
				
			||||||
 | 
					
 | 
				
			||||||
To enable SELinux, do the following after you have run fedora-minimal.sh:
 | 
					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`.
 | 
					- 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.
 | 
				
			||||||
@@ -67,4 +67,3 @@ sudo chmod 644 /etc/ld.so.preload
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# Prepare for SELinux
 | 
					# Prepare for SELinux
 | 
				
			||||||
sudo touch /.autorelabel
 | 
					sudo touch /.autorelabel
 | 
				
			||||||
sudo sed -i 's/SELINUX=permissive/SELINUX=enforcing/' /etc/sysconfig/selinux
 | 
					 | 
				
			||||||
		Reference in New Issue
	
	Block a user