無法使用 sepolicy-generate 建立 SPEC 文件

無法使用 sepolicy-generate 建立 SPEC 文件

在 EL7 中,我一直使用 sepolicy-generate 建立自訂策略,建立的工件之一是 SPEC 檔案。當我在 EL8 上運行相同的命令時,我沒有得到 SPEC 檔案。根據 EL8 的線上幫助頁,它應該仍在建立 SPEC 檔案。

是否必須安裝某些依賴項才能啟用此功能?還是我錯過了什麼?

在EL7上

$ sepolicy generate --init -n foo /usr/sbin/foo
Loaded plugins: fastestmirror, product-id, subscription-manager

***************************************
Warning /usr/sbin/foo does not exist
***************************************

Created the following files:
/home/agriffit/audit2/foo.te # Type Enforcement file
/home/agriffit/audit2/foo.if # Interface file
/home/agriffit/audit2/foo.fc # File Contexts file
/home/agriffit/audit2/foo_selinux.spec # Spec file
/home/agriffit/audit2/foo.sh # Setup Script

在EL8上

$ sepolicy generate --init -n foo /usr/sbin/foo

***************************************
Warning /usr/sbin/foo does not exist
***************************************

Created the following files:
/home/agriffit/test/foo.te # Type Enforcement file
/home/agriffit/test/foo.if # Interface file
/home/agriffit/test/foo.fc # File Contexts file
/home/agriffit/test/foo.sh # Setup Script

相關內容