serverbee.selinux_custom_module
SELinuxカスタムモジュールロール
このロールはカスタムSELinuxモジュールをインストールし、SELinuxを強制モードに設定します。
変数
一般
selinux_config_dir:[デフォルト:/etc/selinux]: カスタムモジュールファイルを保存するディレクトリ
SELinuxカスタムモジュール設定
selinux_custom_modules:[デフォルト:{}]: SELinuxモジュールの宣言selinux_custom_modules.key:[必須]: モジュールの識別子(例:first-custom-module:)selinux_custom_modules.key.value:[必須]: カスタムSELinuxモジュールのソースコードを宣言
依存関係
なし
使用例
---
- host: localhost
roles:
- serverbee.selinux_custom_module
vars:
selinux_custom_modules:
first-custom-module: |
module first-custom-module 1.0;
require {
type myapp_t;
type myapp_port_t;
class tcp_socket name_bind;
}
allow myapp_t myapp_port_t:tcp_socket name_bind;
ライセンス
GPLv3ライセンス
作者情報
ボフダン・サイエンコ
