This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
модуль_selinux [2026/07/21 13:17] val [Добавление сетевых портов к типу (домену) контекста безопасности] |
модуль_selinux [2026/07/21 13:47] (current) val [Добавление сетевых портов к типу (домену) контекста безопасности] |
||
|---|---|---|---|
| Line 39: | Line 39: | ||
| # yum install policycoreutils-python-utils | # yum install policycoreutils-python-utils | ||
| - | # semanage fcontext -l | grep '/var/www' | + | # semanage fcontext -l | grep '/var/www/html' |
| # restorecon -v /var/www/html/index.html | # restorecon -v /var/www/html/index.html | ||
| Line 55: | Line 55: | ||
| <code> | <code> | ||
| - | # ps axZ | grep ssh | + | # ps axZ | grep [s]sh |
| - | # ss -tupanZ | grep ssh | + | # ss -tupanZ | grep [s]sh |
| # runcon -t sshd_t -r system_r -u system_u /usr/sbin/sshd -p 2222 -d | # runcon -t sshd_t -r system_r -u system_u /usr/sbin/sshd -p 2222 -d | ||