大変恐縮ですが、お知恵をお貸いただきたく、お願いいたします。
###前提・実現したいこと
SELinux で ssh_port_t にポート10022を追加したい。
###発生している問題・エラーメッセージ
[root@xxxxxxxxxxx /]# semanage port -a -t ssh_port_t -p tcp 10022
SELinux: Could not downgrade policy file /etc/selinux/targeted/policy/policy.30, searching for an older version.
SELinux: Could not open policy file <= /etc/selinux/targeted/policy/policy.30: No such file or directory
/sbin/load_policy: Can't load policy: No such file or directory
libsemanage.semanage_reload_policy: load_policy returned error code 2. (No such file or directory).
SELinux: Could not downgrade policy file /etc/selinux/targeted/policy/policy.30, searching for an older version.
SELinux: Could not open policy file <= /etc/selinux/targeted/policy/policy.30: No such file or directory
/sbin/load_policy: Can't load policy: No such file or directory
libsemanage.semanage_reload_policy: load_policy returned error code 2. (No such file or directory).
OSError: No such file or directory
###試したこと
購入したテキストや、ネット上の情報だと、上記コマンドで成功しています。おそらくOSのバージョンが原因だと思いネット上で情報を収集したのですが、解決策がみつけられませんでした。
###補足情報(言語/FW/ツール等のバージョンなど)
・CentOS 7.3 x64
・policycoreutils-python-2.5-11.el7_3.x86_64
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/06/12 14:17
2017/06/12 16:17 編集
2017/06/13 15:16