Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
Dessalines ( dessalines@lemmy.ml )  to Rust Programming@lemmy.ml · 1 year ago

Ubuntu 25.10 Switches to Rust-based Sudo

www.omgubuntu.co.uk

external-link
message-square
7
link
fedilink
  • cross-posted to:
  • rust@programming.dev
  • news@lemmy.linuxuserspace.show
34
external-link

Ubuntu 25.10 Switches to Rust-based Sudo

www.omgubuntu.co.uk

Dessalines ( dessalines@lemmy.ml )  to Rust Programming@lemmy.ml · 1 year ago
message-square
7
link
fedilink
  • cross-posted to:
  • rust@programming.dev
  • news@lemmy.linuxuserspace.show
Ubuntu 25.10 replaces the sudo command with sudo-rs, a Rust-based rewrite said to improve memory safety and security. What does this mean for you?
alert-triangle
You must log in or register to comment.
  • Nightwatch Admin ( nightwatch_admin@feddit.nl ) 
    link
    fedilink
    arrow-up
    5
    ·
    1 year ago

    Great, massive step forward. Rust’s memory safety will prevent potential PE vulnerabilities (and more).

  • mina86 ( mina86@lemmy.wtf ) deleted by creator
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    7 months ago

    deleted by creator

    • drspod ( drspod@lemmy.ml ) 
      link
      fedilink
      arrow-up
      14
      ·
      1 year ago

      No user should notice. If it acts differently then that’s a regression.

      • caseyweederman ( caseyweederman@lemmy.ca ) 
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        It looks like it’s explicitly not a 1:1 replacement

        • nous ( nous@programming.dev ) 
          link
          fedilink
          English
          arrow-up
          3
          ·
          1 year ago

          It is not a full replacement - but they are aiming for

          Our current target is to build a drop-in replacement for all common use cases of sudo.

          They are dropping support for some of the older/niche features/settings and now ignore some of the config you used to be able to do.

          Some parts of the original sudo are explicitly not in scope. Sudo has a large and rich history and some of the features available in the original sudo implementation are largely unused or only available for legacy platforms. In order to determine which features make it we both consider whether the feature is relevant for modern systems, and whether it will receive at very least decent usage. Finally, of course, a feature should not compromise the safety of the whole program.

          But generally for all common use cases it should just be a drop in replacement.

          • caseyweederman ( caseyweederman@lemmy.ca ) 
            link
            fedilink
            arrow-up
            2
            ·
            1 year ago

            sudo-rs supports less functionality than sudo. Some of this is by design.
            i.e. not 1:1 replacement.
            My use cases probably won’t be affected, but this will break things for some people.

  • Narann ( Narann@jlai.lu ) 
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    Happy to see more rust!

    I’m geniously curious : Is there a difference in binary sizes? 5%? 10%?

    • Ferk ( Ferk@lemmy.ml ) 
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      1 year ago

      Looks like it’s split in library and binary, the binary itself is smaller, but if you add the size of the library it would be about 10% bigger. At least judging by the package sizes.

      • From https://security.ubuntu.com/ubuntu/pool/universe/r/rust-sudo-rs/

        • sudo-rs_0.2.5-5ubuntu1_amd64.deb 2025-06-13 15:46 536K
        • librust-sudo-rs-dev_0.2.5-5ubuntu1_amd64.deb 2025-06-13 15:46 580K
      • From http://archive.ubuntu.com/ubuntu/pool/main/s/sudo/

        • sudo_1.9.16p2-1ubuntu1_amd64.deb 2025-02-19 19:02 1.0M

Rust Programming@lemmy.ml

rust@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !rust@lemmy.ml
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1 user / day
  • 2 users / week
  • 2 users / month
  • 112 users / 6 months
  • 218 local subscribers
  • 9.4K subscribers
  • 323 Posts
  • 808 Comments
  • Modlog
  • mods:
  • Nutomic ( nutomic@lemmy.ml ) 
  • Joe ( Joe@lemmy.ml ) 
  • AgreeableLandscape ( AgreeableLandscape@lemmy.ml ) deleted by creator
  • BE: 0.19.21
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code