openbsd.unveil

The unveil() system call removes visibility of the entire filesystem from all other filesystem-related system calls, except for the specified paths and permissions.

Members

Functions

unveil
int unveil(char* path, char* permissions)

unveil parts of a restricted filesystem view Return values: 0 for success, -1 for failure

Meta