nixpkgs/nixos/modules/services
Eduard Bachmakov cb10fe8aaf treewide: Remove ineffective capability grants.
Systemd units with `PrivateUsers` set get their capabilities within the user namespace only [1].
As a result they do cannot bind to privileged ports even though they *appear* like they should be able to.

The units in this commit [2] set `PrivateUsers` unconditionally so binding to privileged ports is currently impossible.
Granting them CAP_NET_BIND_SERVICE is useless and misleading any reader of those modules.
Technically, this commit also hardens these modules ever so slightly.

(There are corner cases where this could make sense (e.g. across units, using `JoinsNamspaceOf`) but this is arcane enough to not to be present in nixpkgs.)

[1]: systemd.exec(5): PrivateUsers
[2]: found using `rg -e 'PrivateUsers.?=\s+[^f][^a]' -l | xargs rg -e '\bCAP_' -l`
2024-08-09 23:10:30 +02:00
..
accessibility nixos/speechd: avoid by default on headless systems 2024-07-28 12:16:12 +02:00
admin
amqp
audio treewide: remove unused with statements from maintainer lists 2024-07-29 10:06:20 +08:00
backup Merge pull request #319807 from hellodword/nixos-restic-add-unlock 2024-08-02 18:18:47 +02:00
blockchain/ethereum
cluster nixos/k3s: add test for airgap images import 2024-07-30 21:14:25 +02:00
computing
continuous-integration Merge pull request #322403 from dadada/dev/gitlab-runner-podman 2024-08-03 16:48:09 +02:00
databases treewide: remove trailing space in description 2024-07-26 03:38:50 +02:00
desktop-managers nixos/lomiri: Add camera app 2024-07-30 13:26:09 +02:00
desktops nixos/flatpak: add package option 2024-08-03 15:49:33 +02:00
development livebook: fix service not starting when LIVEBOOK_COOKIE was not set 2024-07-25 17:17:41 +01:00
display-managers
editors
finance modules/odoo: add autoInitExtraFlags 2024-07-19 11:51:57 +02:00
games Revert "nixos/archisteamfarm: fix crash when web-ui is disabled" 2024-07-26 16:27:19 +02:00
hardware treewide: remove unused with statements from maintainer lists 2024-07-29 10:06:20 +08:00
home-automation nixos/home-assistant: customComponents must use buildHomeAssistantComponent 2024-07-26 07:33:40 -07:00
logging
mail treewide: remove periods from lib.mkEnableOption 2024-08-02 23:55:32 +08:00
matrix
misc treewide: Remove ineffective capability grants. 2024-08-09 23:10:30 +02:00
monitoring treewide: Remove ineffective capability grants. 2024-08-09 23:10:30 +02:00
network-filesystems
networking Merge pull request #328365 from Guanran928/cloudflare-dyndns 2024-08-03 15:10:25 +08:00
printing
scheduling
search nixos/tika: add enableOcr option 2024-07-17 13:14:35 +02:00
security treewide: remove unused with statements from maintainer lists 2024-07-29 10:06:20 +08:00
system
torrent
tracing
ttys nixos/kmscon: fix cfgfile missing trailing newline 2024-07-27 15:54:41 +02:00
video Merge remote-tracking branch 'origin/staging-next' into staging 2024-07-18 12:35:33 +02:00
wayland
web-apps treewide: Remove ineffective capability grants. 2024-08-09 23:10:30 +02:00
web-servers nixos/fcgiwrap: require explicit owner for UNIX sockets 2024-07-31 11:03:06 +02:00
x11 Merge pull request #329199 from bobby285271/upd/cinnamon-by-name 2024-07-24 22:04:34 +08:00