Main Menu

Search

LINUX: SELINUX: semanage Command To View The Rules / FCONTEXT Set On Directory

LINUX: SELINUX: semanage Command To View The Rules / FCONTEXT Set On Directory

 Following command can be used.

semanage fcontext -l | grep -i <directory>

Below is sample output showing the rules set on /u01/yum

#semanage fcontext -l | grep -i u01

/u01/yum(/.*)?                                     all files          system_u:object_r:httpd_sys_content_t:s0

No comments:

Post a Comment