Bug 650620
Summary: | SELinux belet /usr/bin/jwhois "read write" toegang on /var/cache/jwhois/jwhois.db. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Michael Gruys <m.gruys> |
Component: | jwhois | Assignee: | Vitezslav Crhonek <vcrhonek> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 14 | CC: | dwalsh, mgrepl, redhat-bugzilla, vcrhonek |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | setroubleshoot_trace_hash:2e4e66f94528ca5b3026d41829b3f412f7f6b009fc2cea556cf5365eb21ef90e | ||
Fixed In Version: | jwhois-4.0-23.fc14 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2010-11-17 23:24:41 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Michael Gruys
2010-11-07 13:09:14 UTC
You can allow it for now using # chcon -R -t fail2ban_var_lib_t /var/cache/jwhois We will need to add a label for that directory. Miroslav, I actually started to write policy for this app, but I think the app is so nuts that I think we should fix the app. It seems to want to be setgid and cache its results in /var/cache/jwhois, like there are that many apps running jwhois, and getting duplicate results. Why does jwhois need a cache? Unfortunately, some domain name registries have braindead configured WHOIS servers, which just allow e.g. less WHOIS queries (or are somewhat slow), which is a serious issue if you've many users performing many WHOIS queries. So there are cases where the cache is really needed. I think the reporter is using fail2ban together with jwhois and caching to avoid getting blackisted by the WHOIS servers. From what I know, the cache is not enabled by default and it also should not be enabled by default - that never was case so far. http://pkgs.fedoraproject.org/gitweb/?p=jwhois.git;a=blob;f=jwhois.spec;h=0a6fdcba477d723184ae6f977be3226e55636d47;hb=c0892802c58f6d2bd05df2b761146758e8c0e5fa Huh? 1 %{?!with_cache: %define with_cache 1} Doesn't this mean if with_cache is not defined, then turn it on? I indeed using fail2ban. No idea if its working together with jwhois. Can be. (In reply to comment #4) > Huh? > > 1 %{?!with_cache: %define with_cache 1} > > Doesn't this mean if with_cache is not defined, then turn it on? Thanks for heads up, this is not intended and it'll be fixed! jwhois-4.0-23.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/jwhois-4.0-23.fc14 jwhois-4.0-23.fc14 has been pushed to the Fedora 14 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update jwhois'. You can provide feedback for this update here: https://admin.fedoraproject.org/updates/jwhois-4.0-23.fc14 jwhois-4.0-23.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report. |