<feed xmlns='http://www.w3.org/2005/Atom'>
<title>dotfiles/etc/polkit-1/rules.d/53-udisks-system-mount.rules, branch master</title>
<subtitle>My linux config and rc files</subtitle>
<id>https://git.sommerfeld.dev/dotfiles/atom/etc/polkit-1/rules.d/53-udisks-system-mount.rules?h=master</id>
<link rel='self' href='https://git.sommerfeld.dev/dotfiles/atom/etc/polkit-1/rules.d/53-udisks-system-mount.rules?h=master'/>
<link rel='alternate' type='text/html' href='https://git.sommerfeld.dev/dotfiles/'/>
<updated>2026-05-29T10:18:12Z</updated>
<entry>
<title>feat(polkit): restrict systemd + udisks system actions to active local sessions</title>
<updated>2026-05-29T10:18:12Z</updated>
<author>
<name>sommerfeld</name>
<email>sommerfeld@sommerfeld.dev</email>
</author>
<published>2026-05-29T10:18:12Z</published>
<link rel='alternate' type='text/html' href='https://git.sommerfeld.dev/dotfiles/commit/?id=cdf6350a7ad530feee509c63675ff6cc74cb7ced'/>
<id>urn:sha1:cdf6350a7ad530feee509c63675ff6cc74cb7ced</id>
<content type='text'>
Two narrow defence-in-depth rules:

- 52-systemd-local-only: org.freedesktop.systemd1.* requires both
  subject.local and subject.active. Wheel-via-sudo-rs is on a different
  path (sudoers) and is not affected. Stops a non-active or remote
  polkit caller from start/stop/restart of system units.

- 53-udisks-system-mount: filesystem-mount-system and modify-system
  require subject.active. The everyday USB auto-mount path uses
  filesystem-mount (no -system suffix) and is unaffected.

Audited against current workflow (virt-manager, networkctl, USB mount,
bluetoothctl, fwupdmgr) — none of these break.
</content>
</entry>
</feed>
