This repository has been archived by the owner on Nov 20, 2023. It is now read-only.
forked from blue-build/legacy-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: make if so every file is already into this repo and disable boo…
…t services
- Loading branch information
1 parent
0987ceb
commit 915ff4d
Showing
11 changed files
with
64 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/sh | ||
systemctl disable displaylink.service bazzite-hardware-setup.service flatpak-system-install.service |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
[Service] | ||
# Hardening | ||
CapabilityBoundingSet=CAP_NET_ADMIN CAP_DAC_OVERRIDE CAP_NET_RAW CAP_NET_BIND_SERVICE CAP_SETGID CAP_SETUID CAP_SYS_MODULE CAP_AUDIT_WRITE CAP_KILL CAP_SYS_CHROOT | ||
LockPersonality=true | ||
MemoryDenyWriteExecute=true | ||
#PrivateDevices=true #breaks tun usage | ||
#ProtectProc=invisible | ||
PrivateTmp=yes | ||
ProtectClock=true | ||
ProtectControlGroups=true | ||
ProtectHome=read-only | ||
ProtectKernelLogs=true | ||
#ProtectKernelModules=true | ||
#ProtectSystem=strict | ||
ReadOnlyPaths=/etc/NetworkManager | ||
ReadOnlyPaths=-/home | ||
ReadWritePaths=-/etc/NetworkManager/system-connections | ||
ReadWritePaths=-/etc/sysconfig/network-scripts | ||
ReadWritePaths=/var/lib/NetworkManager | ||
ReadWritePaths=-/var/run/NetworkManager | ||
ReadWritePaths=-/run/NetworkManager | ||
RemoveIPC=true | ||
RestrictNamespaces=true | ||
RestrictRealtime=true | ||
RestrictSUIDSGID=true | ||
SystemCallArchitectures=native | ||
SystemCallFilter=@system-service | ||
UMask=0077 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[Service] | ||
# Hardening | ||
#CapabilityBoundingSet="CAP_SETPCAP" | ||
LockPersonality=true | ||
MemoryDenyWriteExecute=true | ||
#NoNewPrivileges=true | ||
PrivateDevices=true | ||
#ProtectProc=invisible | ||
PrivateTmp=yes | ||
ProtectClock=true | ||
ProtectControlGroups=true | ||
ProtectHome=true | ||
ProtectHostname=true | ||
ProtectKernelLogs=true | ||
ProtectKernelModules=true | ||
ProtectKernelTunables=true | ||
ProtectSystem=strict | ||
ReadOnlyPaths=-/etc/default/irqbalance | ||
ReadOnlyPaths=-/etc/sysconfig/irqbalance | ||
ReadOnlyPaths=-/etc/irqbalance | ||
ReadWritePaths=/proc/irq | ||
ReadWritePaths=-/run/irqbalance | ||
ReadWritePaths=-/var/run/irqbalance | ||
RemoveIPC=true | ||
RestrictAddressFamilies=~AF_INET | ||
RestrictAddressFamilies=~AF_INET6 | ||
#RestrictAddressFamilies=~AF_NETLINK | ||
RestrictAddressFamilies=~AF_PACKET | ||
RestrictNamespaces=true | ||
RestrictRealtime=true | ||
RestrictSUIDSGID=true | ||
SystemCallArchitectures=native | ||
SystemCallFilter=@system-service | ||
UMask=0077 |