Add dns to pledges when initializing curl

Without the dns pledge, curl can't resolve names on OpenBSD.
This commit is contained in:
Raymond Pasco 2019-11-03 11:47:49 +01:00 committed by Joris Vink
parent 8311c036d9
commit 811b2eb3f0
1 changed files with 3 additions and 0 deletions

View File

@ -114,6 +114,9 @@ kore_curl_sysinit(void)
#if defined(__linux__)
kore_seccomp_filter("curl", filter_curl, KORE_FILTER_LEN(filter_curl));
#endif
#if defined(KORE_USE_PLATFORM_PLEDGE)
kore_platform_add_pledge("dns");
#endif
}
int