Also for some reason this article created a 500+ comment thread on the Orange Website where boomers complain about the authors pronouns.

You are viewing a single thread.
View all comments View context

i’ve literally read the code and i still can’t imagine this would actually work for anything if you don’t even authenticate your root access. or is the bit that it’s the “bottom” sudo so it just asks for access and anything you’d actually need sudo access for, to which the OS says “…no”

permalink
report
parent
reply

The way privileged escalation works on Unix is that any binary owned by root with the right permission bits set can switch to root, so it would actually work if you installed it correctly. I think the bit is just that 🥺 breaks ASCII red team tooling.

permalink
report
parent
reply
8 points
*

It’s an incredibly secure solution to root access control. Every rejection is logged as well

The key part is the exec call at the end. One of the interesting things about the exec-family of system calls in UNIX is that it replaces the current process if it succeeds. This means that the function will never return unless some error happened, so the exec method always returns an error. This will make error handling happen properly and if things fail the process will exit with a non-zero error code:

    Finished release [optimized] target(s) in 0.06s
     Running `target/release/🥺 ls`
Error: Os { code: 1, kind: PermissionDenied, message: "Operation not permitted" }

Every time you run it, it spits out an error

🥺 ls

:bottom-speak: :speech-l:

PermissionDenied, message: "Operation not permitted"

:speech-r: :top-use-words:

permalink
report
parent
reply

That’s because the binary needs the right permissions. If it was root + setuid it should work on Unix.

permalink
report
parent
reply

So building it with the right permissions would actually allow it to run as a sudo alternative?

permalink
report
parent
reply

lol, this is fucking hilarious. sad that i have literally zero people in my life that would understand this

permalink
report
parent
reply

The joke is about sudo replacements being looked down on by the community, so they wrote a sudo replacement that is told “no” by the kernel.

permalink
report
parent
reply

technology

!technology@hexbear.net

Create post

On the road to fully automated luxury gay space communism.

Spreading Linux propaganda since 2020

Rules:

  • 1. Obviously abide by the sitewide code of conduct. Bigotry will be met with an immediate ban
  • 2. This community is about technology. Offtopic is permitted as long as it is kept in the comment sections
  • 3. Although this is not /c/libre, FOSS related posting is tolerated, and even welcome in the case of effort posts
  • 4. We believe technology should be liberating. As such, avoid promoting proprietary and/or bourgeois technology
  • 5. Explanatory posts to correct the potential mistakes a comrade made in a post of their own are allowed, as long as they remain respectful
  • 6. No crypto (Bitcoin, NFT, etc.) speculation, unless it is purely informative and not too cringe
  • 7. Absolutely no tech bro shit. If you have a good opinion of Silicon Valley billionaires please manifest yourself so we can ban you.

Community stats

  • 16

    Monthly active users

  • 5.1K

    Posts

  • 60K

    Comments