From: Johannes Berg <[EMAIL PROTECTED]>

The sysfs attributes add_iface and remove_iface both check for
CAP_NET_ADMIN whenever something is written. Hence, permissions for the
files should be relaxed so that someone who is not root but happens to
have CAP_NET_ADMIN can do things.

Signed-off-by: Johannes Berg <[EMAIL PROTECTED]>
Signed-off-by: Jiri Benc <[EMAIL PROTECTED]>

---

 net/d80211/ieee80211_sysfs.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

b8fa453a5bff1710a6e170e9d50fa337bee5ebdf
diff --git a/net/d80211/ieee80211_sysfs.c b/net/d80211/ieee80211_sysfs.c
index 9974668..6725ff7 100644
--- a/net/d80211/ieee80211_sysfs.c
+++ b/net/d80211/ieee80211_sysfs.c
@@ -195,8 +195,8 @@ static ssize_t ieee80211_local_fmt_rate_
 __IEEE80211_LOCAL_SHOW(rate_ctrl_alg);
 
 static struct class_device_attribute ieee80211_class_dev_attrs[] = {
-       __ATTR(add_iface, S_IWUSR, NULL, store_add_iface),
-       __ATTR(remove_iface, S_IWUSR, NULL, store_remove_iface),
+       __ATTR(add_iface, S_IWUGO, NULL, store_add_iface),
+       __ATTR(remove_iface, S_IWUGO, NULL, store_remove_iface),
        __ATTR(channel, S_IRUGO, ieee80211_local_show_channel, NULL),
        __ATTR(frequency, S_IRUGO, ieee80211_local_show_frequency, NULL),
        __ATTR(radar_detect, S_IRUGO, ieee80211_local_show_radar_detect, NULL),
-- 
1.3.0

-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to