[CentOS] SELinux context not applied
Bernard Fay
bernard.fay at gmail.comMon Oct 17 13:10:23 UTC 2016
- Previous message: [CentOS] Is bind-9.8.2-0.47.rc1.el6_8.1.x86_64 vulnerable
- Next message: [CentOS] SELinux context not applied
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi, I tried to apply a security context on a directory with the following commands: [root@ local]# semanage fcontext -a -t httpd_sys_rw_content_t "netdot(/.*)?" [root@ local]# restorecon -R netdot/ When I list the contexts, it is part of the list.... [root@ local]# semanage fcontext -l | grep netdot ./netdot(/.*)? all files system_u:object_r:httpd_sys_rw_content_t:s0 ... but does not appear on the directory itself: [root@ local]# ls -ldZ netdot/ drwxr-xr-x. root root unconfined_u:object_r:*usr_t*:s0 netdot/ I am expecting to see something like: drwxr-xr-x. root root unconfined_u:object_r:*httpd_sys_rw_content_t*:s0 netdot/ What am I doing wrong or do not understand? Thanks,
- Previous message: [CentOS] Is bind-9.8.2-0.47.rc1.el6_8.1.x86_64 vulnerable
- Next message: [CentOS] SELinux context not applied
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list