|
|
|
|
|
by wint3rmute
484 days ago
|
|
Maybe I'm not getting something here, but I find the pledge/unveil approach confusing. Why should I expect a program to set allowed syscalls/filesystem paths? Why would I trust that it will set itself the right permissions? What is allowed should be set externally from the program, similarly how I can map filesystem volumes and add capabilities to a Docker container [1]. I'm not familiar with BSD and I only used it a couple times out of curiosity. What am I missing? [1] https://docs.docker.com/engine/security/#linux-kernel-capabi... |
|
so the observation is that programs tend to have a startup state where they need access to files and a run state where they don't. so pledge/unveil is a mechanism for a program to inform the os that it no longer needs access to files/syscalls and any future access should be considered a hostile takeover. please kill me.