initial commit
This commit is contained in:
commit
ebc1be5217
143 changed files with 7721 additions and 0 deletions
50
modules/features/security/systemd/security-systemd-dbus.nix
Normal file
50
modules/features/security/systemd/security-systemd-dbus.nix
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
{ ... }:
|
||||
{
|
||||
config.dendritic.features.security-systemd-dbus = {
|
||||
nixosModules = [
|
||||
(
|
||||
{ ... }:
|
||||
{
|
||||
systemd.services.dbus.serviceConfig = {
|
||||
NoNewPrivileges = true;
|
||||
ProtectSystem = "stric";
|
||||
ProtectControlGroups = true;
|
||||
ProtectHome = true;
|
||||
ProtectHostname = true;
|
||||
ProtectKernelTunables = true;
|
||||
ProtectKernelModules = true;
|
||||
ProtectKernelLogs = true;
|
||||
PrivateMounts = true;
|
||||
PrivateDevices = true;
|
||||
PrivateTmp = true;
|
||||
RestrictSUIDSGID = true;
|
||||
RestrictRealtime = true;
|
||||
RestrictAddressFamilies = [
|
||||
"AF_UNIX"
|
||||
];
|
||||
RestrictNamespaces = true;
|
||||
SystemCallErrorNumber = "EPERM";
|
||||
SystemCallArchitectures = "native";
|
||||
SystemCallFilter = [
|
||||
"~@obsolete"
|
||||
"~@resources"
|
||||
"~@debug"
|
||||
"~@mount"
|
||||
"~@reboot"
|
||||
"~@swap"
|
||||
"~@cpu-emulation"
|
||||
];
|
||||
LockPersonality = true;
|
||||
IPAddressDeny = [
|
||||
"0.0.0.0/0"
|
||||
"::/0"
|
||||
];
|
||||
MemoryDenyWriteExecute = true;
|
||||
DevicePolicy = "closed";
|
||||
UMask = 0077;
|
||||
};
|
||||
}
|
||||
)
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue