page counter next up previous contents
Next: Linux 檔案系統 Up: CHROOT Previous: 產生 SELinux 策略規則   Contents   DYWANG_HOME

自訂策略模組

  1. 若開啟 te 檔提示的 SELinux 布林值還是無效,則必須增加策略模組。將上一節產生的模組加入到 SELinux 策略中。
    [root@kvm5 html]# semodule -i httpsudo.pp
    
  2. 查詢 SELinux 模組,已出現自訂的橂組。
    [root@kvm5 html]# semodule -l | grep http
    httpsudo	1.0
    
  3. 移除 SELinux 模組。
    [root@kvm5 html]# semodule -r httpsudo
    libsemanage.semanage_direct_remove_key: Removing last httpsudo module 
    (no other httpsudo module exists at another priority).
    
  4. 再查詢 SELinux 模組,自訂的 httpsudo 模組已不存在。
    [root@kvm5 html]# semodule -l | grep http
    


De-Yu Wang 2020-05-14