Security hardening (#426)

- Switch gid and supplementary groups to user's when reading user's
  config
- Only show users between UID_MIN and UID_MAX in /etc/login.defs
- Open accountsservice icons with O_NOFOLLOW to explicitly disallow
  symlinks
This commit is contained in:
Jeremy Soller 2026-03-13 08:35:18 -06:00 committed by GitHub
parent 239fb4f22f
commit 63cd93bddd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 91 additions and 65 deletions

7
Cargo.lock generated
View file

@ -1366,6 +1366,7 @@ dependencies = [
"tracing",
"tracing-journald",
"tracing-subscriber",
"whitespace-conf",
"xdg 3.0.0",
"zbus 5.11.0",
]
@ -7368,6 +7369,12 @@ dependencies = [
"web-sys",
]
[[package]]
name = "whitespace-conf"
version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "88bce969a15062afb2d34155402d78cd50d1ddeca000a42353ef0c71ddd68995"
[[package]]
name = "widestring"
version = "1.2.0"