aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/etc/nftables.conf
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-13 13:43:36 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-13 13:43:36 +0100
commit767a54e48163ea0db701c926e6bf69f2237fce33 (patch)
treef2d9c79af4d2a1985c010d84cd1192728dc7d856 /etc/nftables.conf
parent1238e4dfc33bc4347564350bbfadac50aa8da0cd (diff)
downloaddotfiles-767a54e48163ea0db701c926e6bf69f2237fce33.tar.gz
dotfiles-767a54e48163ea0db701c926e6bf69f2237fce33.tar.bz2
dotfiles-767a54e48163ea0db701c926e6bf69f2237fce33.zip
fix(sudoers-rs,waybar): pass DIFFPROG (and friends) through sudo-rs
The previous fix sidestepped sudo-rs's env scrubbing by setting DIFFPROG inside a nested root shell. That works but it's the wrong shape — every command that wants to honour a user UX env var would have to do the same dance. Configure the policy once instead. etc/sudoers-rs: Defaults env_keep += "DIFFPROG" Defaults env_keep += "EDITOR VISUAL SUDO_EDITOR GIT_EDITOR" Defaults env_keep += "PAGER MANPAGER GIT_PAGER SYSTEMD_PAGER" Defaults env_keep += "LESS LESSOPEN SYSTEMD_LESS" env_keep is the unconditional pass-through list, so no '-E' is needed on the call site — `DIFFPROG='nvim -d' sudo pacdiff` Just Works, same as it does for `EDITOR=nvim sudo systemctl edit foo`, `PAGER=less sudo journalctl …`, etc. None of these vars influence privilege boundaries; they only configure user-facing program behaviour, so widening env_keep to cover them carries no security trade-off worth accounting for. The existing per-visudo env_keep lines are kept for documentation value (they're now subsumed by the global rule but make the intent explicit at the visudo call sites). The waybar pacdiff click handler reverts to the canonical form `DIFFPROG='nvim -d' sudo pacdiff`, matching the recipe pacman.git ships in /usr/share/doc/pacman/. Will take effect after the next `chezmoi apply` redeploys /etc/sudoers-rs (the run_onchange_after_deploy-etc.sh.tmpl script re-installs it with mode 0440 whenever its hash changes).
Diffstat (limited to 'etc/nftables.conf')
0 files changed, 0 insertions, 0 deletions