• trevor (he/they)@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    16
    ·
    2 days ago

    Rare Canonical W. The only thing I miss from the original sudo is sudoedit, but I’m pretty sure that’s on the Rust implementation’s TODO list.

        • sugar_in_your_tea@sh.itjust.works
          link
          fedilink
          arrow-up
          4
          ·
          2 days ago

          Sure. I guess it would depend on how complex that is, but surely the sudo command already does validations, so it would just need to have the editor write to a temporary file (which is a copy of the official one) and write once it’s validated, right?

          It sounds doable in a few months.

      • trevor (he/they)@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        4
        ·
        edit-2
        2 days ago

        I don’t think it’s that simple. The challenge is that you need to still behave as if it’s invoked as the user so that the editor uses their configurations instead of simply execing it as root.

        I could be wrong though ¯\_(ツ)_/¯

        • sugar_in_your_tea@sh.itjust.works
          link
          fedilink
          arrow-up
          2
          ·
          2 days ago

          Sudo uses the setuid bit or whatever, so it still has access to the user’s environment variables and whatnot. So figuring out which editor to run shouldn’t be an issue.

          • trevor (he/they)@lemmy.blahaj.zone
            link
            fedilink
            English
            arrow-up
            4
            ·
            2 days ago

            That’s not what I mean. Yeah, getting the environment variables are simple enough, but if you simply exec something as the root user, whatever you exec will naturally be looking for configs in /root/.config and not your ~/.config dir, so any configurations to things like your text editor won’t be read.

  • SavvyWolf@pawb.social
    link
    fedilink
    English
    arrow-up
    11
    ·
    2 days ago

    Time for people to be mad that sudo-rs isn’t GPL even though the original sudo wasn’t GPL either.

    • thingsiplay@beehaw.org
      cake
      link
      fedilink
      arrow-up
      3
      ·
      1 day ago

      What issue do people have with the sudo-rs license? Its Free and Open Source. I think its more like people having an issue with the language Rust and just search excuses to be mad at.

      • Ephera@lemmy.ml
        link
        fedilink
        English
        arrow-up
        3
        ·
        22 hours ago

        The concern is that if lots of softwares get rewritten and some of those softwares switch from a copyleft license to a permissive license, then things might stop being open-source sooner or later, because companies are not anymore forced to open-source.

        Yes, in the case of sudo-rs, this concern is silly. But for example, the uutils coreutils are under MIT license, when the GNU coreutils were under GPL-3.0.

        • LeFantome@programming.dev
          link
          fedilink
          arrow-up
          2
          arrow-down
          2
          ·
          13 hours ago

          What could be the possible incentive to:

          1. move core utils to a closed license if you are a company

          2. for a Linux distro to choose that version over the already existing Open Source version

          Remember companies cannot take Open Source code bases closed. They can fork an Open Source project and close their fork. But all that means is that their “future” changes are not Open Source

          The original Open Source code still exists and we can all keep using it.

          For a real world example of companies not closing their userland, Apple still releases the source to their userland even though the BSD license does not require it.

          For a real world example of the community continuing on with the Open Source code and ignoring the closed fork, look at Valkey and Reddis.

          GNU is completely dominated by Red Hat. The alternatives, like uutils, are far LESS corporate.

          Fear and feelings over facts.

          • Ephera@lemmy.ml
            link
            fedilink
            English
            arrow-up
            3
            arrow-down
            1
            ·
            12 hours ago

            Listing examples where it works without enforcement is not an argument against enforcing it where it does not work without. There’s also no reason why uutils couldn’t be less corporate while also having a corporate-unfriendly license. And good luck leading this discussion with anyone, if you’re going to ad hominem right away.

        • thingsiplay@beehaw.org
          cake
          link
          fedilink
          arrow-up
          1
          ·
          22 hours ago

          I don’t see a problem. If someone forks it and changes the license to some proprietary, then their fork is proprietary. The original software is still Open Source. People act like as if the original license changed.

          • towerful@programming.dev
            link
            fedilink
            arrow-up
            3
            ·
            15 hours ago

            The issue is big companies.
            Google/Amazon/Microsoft can now fork sudo-rs and not have to upstream their changes.
            So then Google fixes an exploit for their sudo-rs implementation (or whatever software) and patch it under a different licence. Now the upstream, Amazon and Microsoft forks don’t know if that exploit is also in their implementation, is related to their implementation, or how to potentially fix it.

            The only way it works is if sudo-rs is implementing new features in a way that it benefits Google/Amazon/Microsoft to contribute back to upstream so they don’t have to keep merging/fixing their exploit code.

            For something as stable as sudo, it actually benefits Google/Microsoft/Amazon NOT to share their changes.
            If they are rolling and recommending their own distros (which I’m sure they already are) that include their forked changes, then they can say that their software is more secure than other brands. It benefits them for their competition to suffer security breaches, especially if they trace back to these kinda changes.

            Which makes everything worse for everyone.

          • 7dev7random7@suppo.fi
            link
            fedilink
            arrow-up
            2
            ·
            21 hours ago

            And it the fork gets adapted the user base doesn’t use an open source project anymore. Changes which aren’t synced get shipped and you can’t substitute anymore.

            Permissive licenses are bad: Someone can take your entire code, build upon it, get hand of the userbase and then make weird changes. They don’t protect the users in any form.

            Just imagine someone changed the tools you use daily in such a way that none of your workflows are executed in the same way prior.

            You just learn this once you are truly affected. And trust me - This sucks hard.

            • LeFantome@programming.dev
              link
              fedilink
              arrow-up
              2
              ·
              13 hours ago

              So, you had to choose between the code that was still Open Source and the code that was now proprietary.

              If you stick with the Open Source, what you describe does not happen.

              If you moved to the proprietary, well, there you are. You clearly decided that the new features were more important than it being Open Source.

              Remember, it is only the new features. All the old code remains as open as it ever was.

              • 7dev7random7@suppo.fi
                link
                fedilink
                arrow-up
                1
                ·
                13 hours ago

                So, you had to choose between the code that was still Open Source and the code that was now proprietary.

                You are skipping ahead. The code the userbase follows may become the proprietary one.

                If you stick with the Open Source, what you describe does not happen.

                And this isn’t guaranteed with a permissive license.

                If you moved to the proprietary, well, there you are. You clearly decided that the new features were more important than it being Open Source.

                If this change happens without the knowledge on the userbase now the Open Source solution needs to advocade for it. And its competition supports all of its features and more. And will clearly upstream any features it adds as well.

                Don’t get me wrong - I don’t mean to abandon all projects done by corporations. But a better license gives safety to all users.

                Remember, it is only the new features. All the old code remains as open as it ever was.

                You are not considering vendor lock-in, upstreaming open source changes, less transparency in regards of security, attributions, changes to contributer license agreements, conflicts of interest and probably more things.

            • thingsiplay@beehaw.org
              cake
              link
              fedilink
              arrow-up
              0
              ·
              20 hours ago

              Right, but the other fork became its own project. I have no problem with it. As long as the original code license is not changed.

              • LeFantome@programming.dev
                link
                fedilink
                arrow-up
                2
                arrow-down
                1
                ·
                13 hours ago

                The original code remains available under the original.

                Any proprietary code would have to be code that was added on top of that.

                You always have the ability to keep using the Own Source code. That is a freedom you have.

                If you decide that proprietary version is “better” and choose to use that, well that is a freedom you have. But now you have accepted a proprietary license. Your choice.

                • 7dev7random7@suppo.fi
                  link
                  fedilink
                  arrow-up
                  1
                  ·
                  13 hours ago

                  Any proprietary code would have to be code that was added on top of that.

                  That generalization is wrong. If the license does not state that freedom one can revoke said thing. The author(s) can change the entire license.

                  If not stated you may be able to fork off a previous version. Depending on the CLA (or its absence) you may have to speak with any contributor prior to publishing your fork!!!

  • dinckel@lemmy.world
    link
    fedilink
    arrow-up
    11
    ·
    2 days ago

    I’ve switched my Nix setup to this sudo implementation a while ago, and have noticed no downsides thus far. I’ll take the memory safety, with a fresh codebase