Hacker News new | ask | show | jobs
by SpaceNoodled 18 days ago
This feels like using Docker is just inherently unsafe.
5 comments

The fact that Docker is unsafe was one of the core motivations for Podman.
Was gonna say, "why not podman?"
No, using AI tools not in an effective sandbox is inherently unsafe.
Both can be true.
Yes, that's why they warn you about it.
That’s what rootless docker is for
rootless docker's networking (slirp4netns) is still terribly buggy and in edge cases often locks up using 100% CPU until you discover that your laptop is a lapwarmer and kill it
I found it pretty reliable and use it across all my docker projects, development and production.
This feels like using sudo is just inherently unsafe.
This but unironically. There's no way to ensure that nobody overwrote your .profile or .bashrc with a backdoored sudo that steals your password, or runs your command and then runs an evil command afterwards.
`which sudo`?

`/usr/bin/sudo`?

If they can override sudo, they can override which.
if you use \which it'll always be a shell built-in ;) though someone can put a different shell in your .zshrc

  $ which() { echo foo; }
  $ \which
  foo
The backslash only prevents alias expansion.
`exec /tmp/fake-bash` in bashrc to intercept everything?
Then use the absolute path.
It is. That's why SELinux and AppArmor were invented.

Instead of having "root" and "user", both of these provide sets of permissions that can be granted to apps.

In this case, SELinux would've stopped this. Codex could've still relabelled the files when mounting but this can be blocked for sensitive directories like /etc.

This feels like using a computer is inherently unsafe.

On the plus side, once we outlaw them we'll shut down the ability for conspiratorial thinking to spread easily and the world will slowly heal from the last couple of decades (the previous one in particular).

Hooray! We're finally doing something about the harms of social media. Smash your computer today!

Safety meeting. Nobody works, nobody gets hurt.
Ah yes, it’s the conspiratorial thinking dividing society,

not humans being humans,

not the people at the highest echelons of society being corrupt (Epstein called).

It’s the people trying to piece that evil together so they know what to tell their kids - they’re the problem.

Sure.

I think we're only a few decades away from these things being said unironically.
It's already here, mobile OSes are just computers with ton of guardrails and you can't do whatever you want with it, for the sake of security. I mean we almost got an Android where you can't install the APK you want.
Where's that guy with the ButlerianJihad username when you need him?