-
Notifications
You must be signed in to change notification settings - Fork 584
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
whois profile block hostname resolution via getaddrinfo (Name or service not known) #3780
Comments
|
On my Arch box all the below commands show the
After some digging I stumbled on this. And indeed, none of the below commands show the
|
It would possibly be a matter of combination between whois, resolver and maybe firejail. I noticed in my system that once firejail is not used, the whois works. |
Any progress here? |
I'm closing here due to inactivity, please fell free to request to reopen if you still have this issue. |
The
whois
program cannot resolve hostnames when its profile is enabled in firejail.Bug and expected behavior
whois
profile in/etc/firejail/whois.profile
does not allow hostname resolution andgetaddrinfo
fails withName or service not known
.whois
should return the ARIN WHOIS data record, resolving the service to ask (whois.arin.net in my case) and the query object.No profile and disabling firejail
firejail --noprofile /path/to/program
in a terminal? Works as expected.which <program>
orfirejail --list
while the sandbox is running)? Running the program by path:wields the same result, firejail list:
Running the program with original path
/usr/bin/whois
does not showcases the error. can be any host or IP address you would like to query, e.g. github.com.Reproduce
Steps to reproduce the behavior:
firejail whois github.com
getaddrinfo(<Whois service here>): Name or service not known
Environment
Additional context
I think the
whois
program is not allowed to read the hostname resolution configuration of the system environment. Since each Linux distribution has its own setup for this (systemd, files, other) the maintainers should look into it in more detail and per environment.Checklist
https://github.com/netblue30/firejail/issues/1139
)--profile=PROFILENAME
is used to set the right profile.LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 PROGRAM
to get english error-messages.The text was updated successfully, but these errors were encountered: