SELinux基础

https://www.youtube.com/watch?v=bVa5VQ38CwU

SELinux 1:域domain 對進程進行限制, 2:上下文 context 對系統資源限制
ps -Z 看 domain , ls -Z 看 context
systemcdtl_u : object_r : httpd_exec-t :s0 
用戶:角色 :類型:mls,mcs

restonrecon -R -v /var/www #恢復默認上下文

chcon –reference=/etc/named.conf.orlg /etc/named.conf #改變上下文
getenforce :看當前SELinux 工作狀態
setenforce[0|1] :設置當前SELinux 當前工作狀態

本篇發表於 linux。將永久鍊結加入書籤。

發表迴響

您的電子郵件位址並不會被公開。 必要欄位標記為 *

*

您可以使用這些 HTML 標籤與屬性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>