seinfo: command not found
[root@node1 ~]# cat /etc/centos-release
CentOS Linux release 7.9.2009 (Core)
[root@node1 ~]# seinfo
-bash: seinfo: command not found
[root@node1 ~]# sesearch
-bash: sesearch: command not found
解决
[root@node1 ~]# yum -y install setools-console ====> 要安装这个包
[root@node1 ~]# seinfo
Statistics for policy file: /sys/fs/selinux/policy
Policy Version & Type: v.31 (binary, mls)
Classes: 130 Permissions: 272
Sensitivities: 1 Categories: 1024
Types: 4793 Attributes: 253
Users: 8 Roles: 14
Booleans: 316 Cond. Expr.: 362
Allow: 107834 Neverallow: 0
Auditallow: 158 Dontaudit: 10022
Type_trans: 18153 Type_change: 74
Type_member: 35 Role allow: 37
Role_trans: 414 Range_trans: 5899
Constraints: 143 Validatetrans: 0
Initial SIDs: 27 Fs_use: 32
Genfscon: 103 Portcon: 614
Netifcon: 0 Nodecon: 0
Permissives: 0 Polcap: 5
[root@node1 ~]# sesearch --all | grep glusterd_brick*
allow glusterd_t glusterd_brick_t : lnk_file { ioctl read write create getattr setattr lock relabelfrom relabelto append unlink link rename } ;
allow glusterd_brick_t glusterd_brick_t : filesystem associate ;
allow glusterd_t glusterd_brick_t : sock_file { ioctl read write create getattr setattr lock append unlink link rename open } ;
allow glusterd_t glusterd_brick_t : fifo_file { ioctl read write create getattr setattr lock append unlink link rename open } ;
allow glusterd_t glusterd_brick_t : chr_file { ioctl read write create getattr setattr lock relabelfrom relabelto append unlink link rename open } ;
allow glusterd_t glusterd_brick_t : blk_file { ioctl read write create getattr setattr lock relabelfrom relabelto append unlink link rename open } ;
allow glusterd_t glusterd_brick_t : file { ioctl read write create getattr setattr lock relabelfrom relabelto append unlink link rename open } ;
allow glusterd_t glusterd_brick_t : dir { ioctl read write create getattr setattr lock relabelfrom relabelto unlink link rename add_name remove_name reparent search rmdir open } ;
原博主地址传送门