logoalt Hacker News

sieve • yesterday at 10:35 PM • 2 replies • view on HN

How will you allow permissions for a `ls` style tool? I want to be able to do `ls /etc`.


Replies

amluto • today at 12:00 AM

The tool parses its command line, claims the capabilities it needs, drops everything else, then runs.

Or the language it’s written in allows writing a function that takes a recursive enumerate capability on a directory plus a write capability to stdout.

A while back I sent a brain dump email to LKML about “path capabilities”. Maybe I’ll try to implement it.

➕ show 1 reply
ch4s3 • yesterday at 11:27 PM

Probably on a directory read basis. I’d need to give it more thought.

Thanks for the thoughtful question!