Klemens Nanni <k...@openbsd.org> wrote:

> Pledge is not possible due to the ioctls, but as it hoists both the
> control socket and apm device early at startup and only ever possibly
> executes scripts under /etc/apm/, hiding the rest of the filesystem
> becomes easy.
> 
> Technically, only "x" is required to traverse the directory and run
> scripts, but we carefully access(2) each script, and that requires the
> read bit regardless of the permission bits being tested.
> 
> Feedback? OK?
> 
> Runs fine in daily usage on my X230 with suspend and resume scripts.
> 
> Feedback? OK?

But eventually the scripts are run with fork+execl.

We have not yet decided on the semantics -- whether unveil selections
stick around when execve() is called, or whether they are released
(like pledge).

If the tree starts changing to assume execve() reverts to open system,
you are closing the door for us to choose the stricter policy choice.



Reply via email to