-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gethostbyname()
fails
#168
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi!
I'm trying to run this simple socket example in sandbox2:
Command:
sandbox2tool --sandbox2tool_keep_env --sandbox2tool_mount_tmp --sandbox2tool_resolve_and_add_libraries --sandbox2tool_need_networking a.out
Additionally the sandbox is configured to allow all syscalls (
DangerDefaultAllowAll()
).I was expecting
gethostbyname()
to succeed and return a hostent struct containing one or several IP addresses.Instead
gethostbyname()
fails withh_errno=3 (NO_RECOVERY)
.Interestingly passing an IP address directly to
gethostbyname()
instead oflocalhost
doesn't fail.What am I missing?
Cheers
The text was updated successfully, but these errors were encountered: