logoalt Hacker News

0c3ca83 • today at 12:10 AM • 2 replies • view on HN

- Ghostty (fine, it's my terminal)

But your terminal shouldn't be accessing any files; you just need to be able to launch /bin/zsh or whatever you use as your shell. The shell needs to be able to access files, but its container doesn't.

Of course, you could go farther. For example, on OpenBSD, even /bin/ksh has been somewhat sandboxed; it can see most of the file system, but the things it can do have been limited:

  if (pledge("stdio rpath wpath cpath fattr flock getpw proc "
      "exec tty id", NULL) == -1) {

Replies

rolosa • today at 12:29 AM

If you try to ls / for example it's going to pop up a request to access your disk, multiple times. It's rather annoying.

➕ show 1 reply
saagarjha • today at 12:24 AM

macOS attributes shell commands to their parent app bundle.

➕ show 2 replies