User Tools

Site Tools


linux:selinux_cheatsheet

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
linux:selinux_cheatsheet [2023/02/27 14:24] dodgerlinux:selinux_cheatsheet [2023/02/27 14:25] (current) dodger
Line 19: Line 19:
  
  
 +===== Restore Default Security Contexts =====
 +Over 1 file:
 +<code bash>
 +restorecon -v /var/www/html/index.html
 +</code>
  
 +or to recursively restore the default security contexts for the whole directory:
 +<code bash>
 +restorecon -Rv /var/www/html 
 +</code>
  
 ====== Networking ====== ====== Networking ======
linux/selinux_cheatsheet.1677507856.txt.gz · Last modified: 2023/02/27 14:24 by dodger