SELinux トランジションが hostname_t と initrc_tmp_t で異なる
Issue
バイナリでファイルコンテキストが定義されていないサービスを開始すると、initrc_t ドメインでプロセスが実行します。
-
このプロセスが、bash を使用してシェルスクリプトを実行すると、"hostname" コマンドが問題なく実行されます。
-
ただし、このプロセスが ksh スクリプトを実行すると、このシェルスクリプトで SELinux によって "hostname" コマンドがブロックされます。
Environment
- Red Hat Enterprise Linux 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
