drop unnecessary unveil(NULL, NULL)
the next line is a call to pledge, that alone is will block further calls to unveil(2) since ``unveil'' isn't in the set of pledges.
This commit is contained in:
parent
8454548b51
commit
16a5ed7b30
1 changed files with 0 additions and 2 deletions
2
main.c
2
main.c
|
@ -93,8 +93,6 @@ drop_privileges(const char *user, const char *path)
|
|||
|
||||
eunveil(cgifullpath, "rx");
|
||||
}
|
||||
/* forbid more unveil */
|
||||
eunveil(NULL, NULL);
|
||||
|
||||
/*
|
||||
* prevent system calls other parsing queryfor fread file and
|
||||
|
|
Loading…
Add table
Reference in a new issue