selinuxを使用すると、systemdサービスをカスタマイズできます。

selinuxを使用すると、systemdサービスをカスタマイズできます。

RHEL 8.8にはカスタマイズ/etc/systemd/system/custom.service

[Unit]
Description=custom

[Service]
Type=simple
ExecStart=/root/scripts/custom.sh

[Install]
WantedBy=default.target

私の/root/scripts/custom.shものroot.root -rwx------

/var/log/messages私はselinuxがスクリプトの実行を拒否するという声明を見ました。私の/root/scripts/custom.shスクリプトを私で実行するにはどうすればよいですかcustom.service

ベストアンサー1

おすすめ記事