SELinux 去哪了?

SELinux 去哪了?

我正在編譯一個新內核,並且想要啟用 SELinux,但在 menuconfig 中的任何地方都沒有看到它。安全選項下唯一的框架是Tomoyo......所以我想問,SELinux 發生了什麼事? 2.6.33.2 和 2.6.35.11 似乎都沒有它......

答案1

[複製傑斯的評論作為完整答案]

必須先從常規設定中啟用審核。從Linux 核心簡述:

SELinux 要求啟用網路選項。請參閱“網路”部分來啟用此功能。

SELinux 也要求在核心配置中啟用審核。去做這個:

 General setup
     [*] Auditing support

此外,必須啟用網路安全選項:

 Security options
     [*] Enable different security models
     [*]   Socket and Networking Security Hooks

現在可以選擇 SELinux 選項:

Security options
    [*] Enable different security models
    [*] NSA SELinux Support 

您可能還想啟用許多單獨的 SELinux 選項。請參閱各個不同項目的協助,以獲取有關其用途的更多描述。

 Security options
     [*] Enable different security models
     [*] NSA SELinux Support
     [ ]   NSA SELinux boot parameter
     [ ]   NSA SELinux runtime disable
     [*]   NSA SELinux Development Support
     [*]   NSA SELinux AVC Statistics
     (1)   NSA SELinux checkreqprot default value

相關內容