SELinux - context

maelamrani

Member
Joined
Jan 3, 2020
Messages
77
Reaction score
7
Credits
450
Hello,
Can someone explain to me this question :
Create a directory /direct01 and apply SELinux contexts for /root
what should i do ?
Kind regards,
 


Assuming your are running centos/rhel.
Code:
semanage fcontext -a -t admin_home_t "/direct01(/.*)?"
restorecon -R
 
Hello thx for ur answer but why did you choose admin_home_t
For root mean ?
You check the selinux context of /root by doing
Code:
ls -Z /
 

Members online


Top