News for hackers. Stuff that matters.
Re:The First Stable Release of a Rust-Rewrite Sudo Implement... by wiz21c on Monday November 06, 2023 @07:19AM (#38161566)
Moving away from the GPL is a very bad idea for such critical component. Exactly for the reason you give.

(this post is just here to insist on the issue)

Re:The First Stable Release of a Rust-Rewrite Sudo Implement... by mhh__ on Monday November 06, 2023 @07:33AM (#38161711)
In general a lot of "[GNU tool] but in rust" projects do seem to come very close to violating the GPL, especially in spirit.
Re:The First Stable Release of a Rust-Rewrite Sudo Implement... by tsimionescu on Monday November 06, 2023 @08:22AM (#38162250)
In what sense? It is completely in the spirit of the GPL to reimplement a GPL tool from scratch with the same behavior and a different license. After all, that's how the free Unixes came about (though admittedly those were BSD licensed typically).
Re:The First Stable Release of a Rust-Rewrite Sudo Implement... by zorked on Monday November 06, 2023 @08:54AM (#38162584)
Kinda? Historically there were indeed concerns about reimplementation and copyright. One of the ways that the GNU Project tried to fight claims was to reimplement the tools using dynamically-allocated memory (instead of Unix's traditional fixed-size buffers) to make sure the implementation was sufficiently different. Other ways were making the implementation Posixly correct, adding internationalization or trying to pick different approaches (like using more modern algorithms for sorting). The GNU tools were better, not just direct ports, and that's why it was common to install them in systems like Solaris or HP-UX.
Re:The First Stable Release of a Rust-Rewrite Sudo Implement... by iudqnolq on Monday November 06, 2023 @09:52AM (#38163381)
Arguably writing in Rust will force a similar magnitude difference to those examples. For example, you'll probably replace that modern sorting algorithm with a call to .sort
Re:The First Stable Release of a Rust-Rewrite Sudo Implement... by mustache_kimono on Monday November 06, 2023 @12:14PM (#38165386)
> Kinda? Historically there were indeed concerns about reimplementation and copyright.

Free software projects should welcome multiple implementations and interoperability, because these are the mother's milk of free software. It's frankly incoherent, given values of free software, that a reimplementation of, for example, Unix coreutils (GNU) would find fault with a reimplementation of itself (uutils).

Notwithstanding how philosophically incoherent it is, a desire, now that Linux and free software have some market power, to be a bully back, to grasp for monopoly power, to play AT&T, is really distasteful. What's exciting about free software is not the artifact, Linux or coreutils or sudo, but that anyone can create new and interesting alternatives.

Re:The First Stable Release of a Rust-Rewrite Sudo Implement... by zorked on Tuesday November 07, 2023 @05:44AM (#38175341)
The fact that it is free software shouldn't make things different since it's a matter of copyright law. It's fine to copy the interface - the implementation not really. There would certainly be NO problem if a close reimplementation was under the GNU GPL (as a derivive work). But a close reimplementation can't have a different license.
Re:The First Stable Release of a Rust-Rewrite Sudo Implement... by zorked on Tuesday November 07, 2023 @08:11AM (#38176335)
*derivative work
Re:The First Stable Release of a Rust-Rewrite Sudo Implement... by slikrick on Wednesday November 08, 2023 @08:24AM (#38189976)
a reimplementation that copies the interface has no need to copy the license. GPL people just get scared because they know their license can't prevent people from rewriting their own software (of course, such an idea is ridiculous).

the GPL is not a perfect license, there is no such thing.

Re:The First Stable Release of a Rust-Rewrite Sudo Implement... by mustache_kimono on Tuesday November 07, 2023 @10:18AM (#38177746)
This was a discussion of the philosophical/meta/attitudinal issues, and why this is kinda a bizarre attitude for a free software project to hold.

You might take a look at another comment of mine about why I think there may be few legal/copyright issues with a reimplementation: https://news.ycombinator.com/item?id=38164958

Implicit in your comment are unstated assumptions about what is copied from the implementation. Suffice to say -- I disagree that a so-called "clean room" implementation is always required re: software published on the internet, or that the act of simply reading GPL code taints one forever, re: that code. The reason why is the reason why reading a book does not taint one forever and prevent one from writing one's own book. See, and pay close attention to the "Merger Doctrine": https://en.wikipedia.org/wiki/Idea–expression_distinction

I'd agree if there is something especially clever/creative about the implementation that the reimplementation copies, that might be an issue, but again it seems especially rich for a reimplementation to find fault with a reimplementation ever.

Re:The First Stable Release of a Rust-Rewrite Sudo Implement... by oynqr on Monday November 06, 2023 @09:00AM (#38162651)
Pretty sure you'd have to clean room the whole thing. Which these Rust implementation might not have. This is not legal advice.
Re:The First Stable Release of a Rust-Rewrite Sudo Implement... by mhh__ on Monday November 06, 2023 @10:28AM (#38163862)
I can't remember enough to name names but one obviously didn't to the point that it mentioned what the GNU code does in comments.
Re:The First Stable Release of a Rust-Rewrite Sudo Implement... by mustache_kimono on Monday November 06, 2023 @11:46AM (#38164958)
I'm really not certain this is enough to be a copyright problem.

For instance, GNU and POSIX both publish their specs for the coreutils. If a coder were to take a look at the actual GNU code (which BTW is published for everyone to see), copyright law has a well trodden distinction between the idea and the expression -- that is, ideas are not copyrightable. If the "idea" simply amounts to what would be a more a detailed specification, I'm not sure there is a problem, like ... GNU uses this kernel facility for X. The problem would be vast amounts of "expression", especially "creative expression", directly copied and reimplemented in Rust. If the code is meat and potatoes, not 10xer galaxy brain fare ("I wrote a custom allocator which is suspiciously like the custom allocator implemented by GNU"), there shouldn't be an issue.

Think about what copyright to a play, or a novel, or a screenplay is. Now imagine a comment in the text/source: "This is how Toni Morrison did her characterizations in Beloved". This obviously isn't a copyright violation, unless you're copying the actual expression or a translation of the actual expression found in Beloved.

Re:The First Stable Release of a Rust-Rewrite Sudo Implement... by nindalf on Monday November 06, 2023 @09:51AM (#38163377)
But it wasn’t GPL to begin with - https://www.sudo.ws/about/license/