Update SELinux
This commit is contained in:
@@ -20,3 +20,18 @@ setsebool -P httpd_can_network_connect 1
|
||||
# Allow open file in dir
|
||||
chcon -R -t httpd_sys_content_t dir
|
||||
```
|
||||
|
||||
```
|
||||
# Set file context
|
||||
semanage fcontext -a -t bin_t '/usr/bin/ssh'
|
||||
restorecon -v /usr/bin/ssh
|
||||
|
||||
# View all modificates
|
||||
semanage -o
|
||||
|
||||
# View fs modificates
|
||||
semanage fcontext --list -C
|
||||
|
||||
# View port modificates
|
||||
semanage port --list -C
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user