Bug 697617
Summary: | wpa_supplicant + selinux = sys_module denial | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Maciej Żenczykowski <zenczykowski> |
Component: | wpa_supplicant | Assignee: | Dan Williams <dcbw> |
Status: | CLOSED WONTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | 14 | CC: | bugzilla, dcbw, dwalsh, eparis, pebolle, tadej.j |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-08-16 22:25:01 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
Maciej Żenczykowski
2011-04-18 18:37:10 UTC
This is a kernel regression but we dontaudit it in selinux-policy-3.9.7-39.fc14 (In reply to comment #0) > [...] (I have > absolutely no idea what kernel modules wpa_supplicant might possibly be trying > to load...): 0) Neither have I, but the (verbose) "SETroubleshoot Detail Window", which you apperently copied, doesn't tell us which module wpa_supplicant loaded. Separate bug? 1) Anyhow, identical to bug #697221. *** Bug 697221 has been marked as a duplicate of this bug. *** There is a kernel bug on this, and yes it would be nice if the kernel would tell us which module was attempted to be loaded. (In reply to comment #4) > There is a kernel bug on this, 0) That seems to be bug #684415 (and this one may be closed as a duplicate too, I guess). > and yes it would be nice if the kernel would > tell us which module was attempted to be loaded. 1) Well, a comment in bug #684415 (https://bugzilla.redhat.com/show_bug.cgi?id=684415#c15) links to the upstream commit that apparently started all this: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=8909c9ad8ff03611c9c96c9a92656213e4bb495b . A snippet from that commit suggests that this shouldn't fail silently if we have CAP_SYS_MODULE. But maybe that commit is not at issue here or maybe SELinux somehow hides that pr_err() because capable(CAP_SYS_MODULE) fails, or something entirely different is going on. Anyway, it should be trivial to make the code more verbose. I'm referring to this: void dev_load(struct net *net, const char *name) { struct net_device *dev; + int no_module; rcu_read_lock(); dev = dev_get_by_name_rcu(net, name); rcu_read_unlock(); - if (!dev && capable(CAP_NET_ADMIN)) - request_module("%s", name); + no_module = !dev; + if (no_module && capable(CAP_NET_ADMIN)) + no_module = request_module("netdev-%s", name); + if (no_module && capable(CAP_SYS_MODULE)) { + if (!request_module("%s", name)) + pr_err("Loading kernel module for a network device " +"with CAP_SYS_MODULE (deprecated). Use CAP_NET_ADMIN and alias netdev-%s " +"instead\n", name); + } } This message is a notice that Fedora 14 is now at end of life. Fedora has stopped maintaining and issuing updates for Fedora 14. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At this time, all open bugs with a Fedora 'version' of '14' have been closed as WONTFIX. (Please note: Our normal process is to give advanced warning of this occurring, but we forgot to do that. A thousand apologies.) Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, feel free to reopen this bug and simply change the 'version' to a later Fedora version. Bug Reporter: Thank you for reporting this issue and we are sorry that we were unable to fix it before Fedora 14 reached end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged to click on "Clone This Bug" (top right of this page) and open it against that version of Fedora. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping |