User Tools

Site Tools


модуль_selinux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
модуль_selinux [2020/07/16 13:55]
val [Конфигурация]
модуль_selinux [2020/07/16 14:14]
val [Добавление сетевых портов к типу (домену) контекста безопасности]
Line 56: Line 56:
 # ss -tupanZ | grep ssh # ss -tupanZ | grep ssh
  
-yum install setools-console +semanage port -| grep ssh
-# sesearch --allow ​| grep sshd_t | grep port+
  
 # semanage port -a -t ssh_port_t -p tcp 2222 # semanage port -a -t ssh_port_t -p tcp 2222
-# yum install policycoreutils-devel +
-# sepolicy network -a /​usr/​sbin/​sshd+
 # semanage port -d -t ssh_port_t -p tcp 22 # semanage port -d -t ssh_port_t -p tcp 22
 </​code>​ </​code>​
модуль_selinux.txt · Last modified: 2024/04/26 14:33 by val