nixpkgs/nixos/modules/services
Martin Weinelt 24adc01e2e
nixos/home-assistant: allow netlink sockets and /proc/net inspection
Since v2021.5.0 home-assistant uses the ifaddr library in the zeroconf
component to enumerate network interfaces via netlink. Since discovery
is all over the place lets allow AF_NETLINK unconditionally.

It also relies on pyroute2 now, which additionally tries to access files
in /proc/net, so we relax ProtectProc a bit by default as well.

This leaves us with these options unsecured:

✗ PrivateNetwork=                                             Service has access to the host's network                                                                 0.5
✗ RestrictAddressFamilies=~AF_(INET|INET6)                    Service may allocate Internet sockets                                                                    0.3
✗ DeviceAllow=                                                Service has a device ACL with some special devices                                                       0.1
✗ IPAddressDeny=                                              Service does not define an IP address allow list                                                         0.2
✗ PrivateDevices=                                             Service potentially has access to hardware devices                                                       0.2
✗ PrivateUsers=                                               Service has access to other users                                                                        0.2
✗ SystemCallFilter=~@resources                                System call allow list defined for service, and @resources is included (e.g. ioprio_set is allowed)      0.2
✗ RestrictAddressFamilies=~AF_NETLINK                         Service may allocate netlink sockets                                                                     0.1
✗ RootDirectory=/RootImage=                                   Service runs within the host's root directory                                                            0.1
✗ SupplementaryGroups=                                        Service runs with supplementary groups                                                                   0.1
✗ RestrictAddressFamilies=~AF_UNIX                            Service may allocate local sockets                                                                       0.1
✗ ProcSubset=                                                 Service has full access to non-process /proc files (/proc subset=)                                       0.1

→ Overall exposure level for home-assistant.service: 1.6 OK 🙂
2021-05-06 16:55:53 +02:00
..
admin
amqp
audio Merge pull request #117554 from Zopieux/snapcast-meta 2021-04-07 10:30:32 +02:00
backup nixos/users: require one of users.users.name.{isSystemUser,isNormalUser} 2021-04-14 20:40:00 +02:00
blockchain/ethereum nixos/geth: initial service 2021-02-23 19:28:51 +01:00
cluster Merge pull request #119426 from onixie/master 2021-05-03 14:32:00 +02:00
computing nixos/slurm: fix creation of slurmdbd config file 2021-05-01 00:15:55 +02:00
continuous-integration services.buildkite-agents: support multi-tags 2021-04-22 21:23:52 +09:00
databases nixos/cassandra: extraUsers -> users 2021-04-29 08:51:40 +02:00
desktops pipewire: Add update script 2021-04-27 16:50:22 +02:00
development Revert "nixos/hoogle: add type" 2021-02-01 17:39:08 +01:00
display-managers nixos/greetd: Add greetd module (#118294) 2021-04-06 19:35:32 +00:00
editors
games Merge pull request #111951 from f4814/add-quake3-module 2021-04-16 20:20:18 -04:00
hardware nixos/pcscd: Correctly install pcsclite (fix #121121) 2021-04-30 10:33:03 +02:00
logging nixos/promtail: Set TimeoutStopSec=10 2021-04-28 21:02:11 +02:00
mail nixos/postfix: fix compatibility level 2021-05-02 21:49:33 +00:00
misc nixos/home-assistant: allow netlink sockets and /proc/net inspection 2021-05-06 16:55:53 +02:00
monitoring nixos/treewide: Remove usages of deprecated types.string 2021-05-05 03:31:41 +02:00
network-filesystems nixos/ipfs: remove separate ipfs-init systemd unit 2021-04-22 21:13:05 +02:00
networking Merge pull request #121512 from rnhmjoj/searx 2021-05-04 11:43:12 +02:00
printing nixos/printing: simplify filterGutenprint function 2021-03-14 11:59:00 +01:00
scheduling
search
security nixos/oauth2_proxy_nginx: add nginx config only if oauth2_proxy is enabled. 2021-05-03 11:23:03 -07:00
system treewide: fix eval without aliases after 9378fdf87e 2021-04-08 13:33:09 +02:00
torrent nixos/services/torrent/transmission.nix: add a missing apparmor rule 2021-05-05 22:47:52 +02:00
ttys nixos/getty: add services.getty.extraArgs 2021-02-26 13:17:04 +01:00
video
wayland cage: drop maintainership (#121174) 2021-04-29 18:07:13 +02:00
web-apps nixos/keycloak: Document how to use a custom local database 2021-05-04 19:27:08 +02:00
web-servers Merge pull request #119172 from midchildan/package/trafficserver 2021-05-03 09:48:07 +01:00
x11 Merge pull request #120048 from flokli/inotify-max-user-instances 2021-05-03 17:45:41 +02:00