Use SO_PEERSEC to get client secontext

This commit is contained in:
topjohnwu
2021-10-19 23:46:38 -07:00
parent fe41df87bb
commit 8d0dc37ec0
7 changed files with 47 additions and 43 deletions

View File

@ -25,7 +25,7 @@ Actions:
exit(1);
}
void denylist_handler(int client, ucred *cred) {
void denylist_handler(int client, const sock_cred *cred) {
if (client < 0) {
revert_unmount();
return;