Correcties

modified:   data/config.json
	modified:   data/info.md
	modified:   posts/24Jul-SyncRepo.md
	modified:   posts/24Jun-zabbix-prom.md
	modified:   posts/27Sept-GitlabUpgrade.md
	modified:   posts/31Jul-SELinux.md
This commit is contained in:
Eli Winderickx
2024-03-24 15:30:20 +01:00
parent e0c3ca82eb
commit 549733cd52
6 changed files with 20 additions and 18 deletions

View File

@@ -35,7 +35,7 @@ ps auZ
# ...unconfined_u:unconfined_u:unconfined_u:s0-s0:
```
![Security context in processen](/SELinux/SELinuxProcess.png)
![Security context in processen](/SELinuxProcess.png)
De `SELinux` context kan opgedeeld worden door middel van het `:` teken. Het eerste deel slaagt op de `user mapping`, vervolgens `role`, dan `type` en het laatste gedeelte is het level. Dit level is relevant in de `multi-level security` policy.
@@ -104,7 +104,7 @@ server {
Als we nu de website proberen te benaderen krijgen we nu een error in het audit log. Ik heb zelf die map aangemaakt en deze heeft nog niet de juiste security context. Dat kunnen we aanpassen!
![Audit log met error over onze public_html map](/SELinux/SELinux_AuditLog.png)
![Audit log met error over onze public_html map](/SELinux_AuditLog.png)
```bash
# We kennen de juiste security context toe aan de map
@@ -116,7 +116,7 @@ Omdat we heel Agile werken, heb ik nieuwe bestanden geüpload naar mijn persoonl
```
mv ~/myNewIndex.html /srv/www/public_html/index.html
```
![Foute security context](/SELinux/SELinux_FoutieveSecurityContext.png)
![Foute security context](/SELinux_FoutieveSecurityContext.png)
```
restorecon -R /srv/www/public_html/