From: Johannes Berg <johannes@sipsolutions.net>
To: Colleen Twitty <colleen@cozybit.com>
Cc: open80211s <devel@lists.open80211s.org>,
linux-wirelss <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH v2 1/2] cfg80211: Userspace may inform kernel of mesh auth method.
Date: Tue, 07 May 2013 15:57:56 +0200 [thread overview]
Message-ID: <1367935076.8328.35.camel@jlt4.sipsolutions.net> (raw)
In-Reply-To: <1367884164-15953-1-git-send-email-colleen@cozybit.com> (sfid-20130507_014932_282742_1BD03472)
On Mon, 2013-05-06 at 16:49 -0700, Colleen Twitty wrote:
> + if (tb[NL80211_MESH_SETUP_AUTH_PROTOCOL]) {
> + if (!setup->user_mpm)
> + return -EINVAL;
> + switch (nla_get_u8(tb[NL80211_MESH_SETUP_AUTH_PROTOCOL])) {
> + case NL80211_AUTHTYPE_SAE:
> + setup->auth_id = IEEE80211_AUTH_PROTO_SAE;
> + break;
> + case NL80211_AUTHTYPE_OPEN_SYSTEM:
> + setup->auth_id = IEEE80211_AUTH_PROTO_NONE;
> + break;
> + default:
> + return -EINVAL;
> + }
> + }
Ok one more question. Does it actually make sense to check the auth
protocol?
>From what I see, the entire auth protocol (e.g. SAE) is handled entirely
in userspace, so if somebody invents a new protocol (e.g. number 3), or
wants to use 802.1X (number 2) they should also be able to implement
that completely in userspace. As such, why validate it? It could be a
valid protocol?
Or am I missing something and there's some kernel part involved in
handling the auth protocol, so we need to check that the kernel code
actually supports it?
johannes
next prev parent reply other threads:[~2013-05-07 13:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-06 23:49 [PATCH v2 1/2] cfg80211: Userspace may inform kernel of mesh auth method Colleen Twitty
2013-05-06 23:49 ` [PATCH v2 2/2] mac80211: enable Auth Protocol Identifier on mesh config Colleen Twitty
2013-05-07 13:57 ` Johannes Berg [this message]
2013-05-08 7:24 ` ATH5k - wrong RSSI measurement on CM9 Jaroslav Fojtik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1367935076.8328.35.camel@jlt4.sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=colleen@cozybit.com \
--cc=devel@lists.open80211s.org \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox