[Bug 2133784] Re: sudo-rs is missing the '-E' argument

Simon Johnsson 2133784 at bugs.launchpad.net
Wed Dec 3 11:20:39 UTC 2025


*** This bug is a duplicate of bug 2129806 ***
    https://bugs.launchpad.net/bugs/2129806

Hi Piotr! Thanks for the bug report. I understand your frustration in
existing things breaking due to unexpected changes. The current upstream
stance for the `-E` argument however, is for existing solutions to
replace it with an explicit `--preserve-env=VAR` for security reasons.
At the moment, this should be viable for all scenarios where `-E` is
used.

Although everything cannot be changed at once, snaps using the `-E` flag
will be patched to use `--preserve-env=VAR` as well. One example is
microk8s which had the same issue:
https://bugs.launchpad.net/ubuntu/+source/rust-sudo-rs/+bug/2129806

If you have any specific packages that break when using sudo-rs, feel
free to let us know with a bug report so that we are made aware of the
issue.

For now, I am marking this bug as "Won't fix", as it is essentially a
duplicate of https://bugs.launchpad.net/ubuntu/+source/rust-sudo-
rs/+bug/2129806

** Changed in: rust-sudo-rs (Ubuntu)
       Status: New => Won't Fix

** This bug has been marked a duplicate of bug 2129806
   microk8s join fail on Ubuntu 25.10 because sudo-rs ignores -E

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to rust-sudo-rs in Ubuntu.
https://bugs.launchpad.net/bugs/2133784

Title:
  sudo-rs is missing the '-E' argument

Status in rust-sudo-rs package in Ubuntu:
  Won't Fix

Bug description:
  'sudo' from sudo-rs is missing the '-E' argument REQUIRED by existing
  solutions (even snap uses this!).

  Upstream report: https://github.com/trifectatechfoundation/sudo-
  rs/issues/1299

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rust-sudo-rs/+bug/2133784/+subscriptions




More information about the foundations-bugs mailing list