Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
erdnaxe
nixos
Commits
ca12b74c
Commit
ca12b74c
authored
Jun 12, 2022
by
erdnaxe
🦋
Browse files
Update bluetooth hardening options
parent
fd53192e
Changes
1
Hide whitespace changes
Inline
Side-by-side
base/package.nix
View file @
ca12b74c
...
...
@@ -69,18 +69,11 @@
systemd
.
services
.
bluetooth
.
serviceConfig
=
{
# Hardening
MemoryDenyWriteExecute
=
true
;
# fedora
NoNewPrivileges
=
true
;
# fedora
PrivateTmp
=
true
;
# fedora
# RestrictAddressFamilies = [ "AF_UNIX" "AF_BLUETOOTH" "AF_NETLINK" ]; breaks rfkill
ProtectClock
=
true
;
ProtectControlGroups
=
true
;
# fedora
ProtectKernelLogs
=
true
;
ProtectKernelTunables
=
true
;
# fedora
ProtectKernelModules
=
true
;
ProtectSystem
=
"full"
;
# arch, deb, fedora, opensuse
RestrictAddressFamilies
=
[
"AF_UNIX"
"AF_BLUETOOTH"
];
RestrictNamespaces
=
true
;
RestrictRealtime
=
true
;
# fedora
SystemCallArchitectures
=
"native"
;
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment