My SELinux Notes

From Got Opinion Wiki
Jump to navigation Jump to search

View & Modify enforcement level

View enforcement level

# getenforce
Enforcing

Set enforcement to permissive at run time

# setenforce 0
# getenforce
Permissive

Set enforcement to enforcing at run time

# setenforce 1
# getenforce
Enforcing
To Linux