Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp262213ybb; Thu, 19 Mar 2020 21:29:56 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsgodcYB0J+rFHqb2mEKJPPcl9oRZsbEe+V+7goujU/HjH4O/1WNN2ZYpY4LerMvmwxObOi X-Received: by 2002:a9d:554a:: with SMTP id h10mr4946423oti.344.1584678596699; Thu, 19 Mar 2020 21:29:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584678596; cv=none; d=google.com; s=arc-20160816; b=RbEIVrMaLq0vrqYQjkRTFQ/TIO+eTZzwE/R8LaMA2CCM4o8BDrfU+6fDIb/Ar/MVGR 5Jj7EB834Gq/BSL4nDCZ50mEcdEuuQDwscEQhVG7E5bNcsMrVdQarILPsfu5EVAPSEvk 5ZaknGnt+KDBEAJVNElwsAVYn24hISsTy3kvC2iYNo94B4mpkAn+A2N1ZxlnWcUmPqtz P3hL+CAcCZ5luzlH9Sy9CJHPNsiIrmg6OWtnxA4uy/aysp4SmIm6lEETazj3lDxsA3U3 8Hde14gL0o0gwGHXhDPQJUbBewsa2b0stQM0WpgPX/Y+AfdF9xdOEmB67gDgMxZR/U+D vgCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:mime-version:user-agent:date:message-id:subject :from:to:dkim-signature; bh=TRdmzlBZKIjp6suR+uwhZUwUF+19FuwsfRRrul9c3mY=; b=cUNhB144JWAs97D2JKuJnmqw/Df9djps6pO0v16Sl2ZXykr25ITtVL21/R9CSEe6B2 bm5pLcc09TH7B3Aig0Q7tquaeGGj5rwD4wLc+805GK1+rMXlx80/HF38OMD+HvAx3YZ+ zm+iYnAPPbnYUWdtLQQm626jGxX8gYZXsKuFIskv0M4QjVYgCbyC/nvwmGRF2qKaIAXP S9v9Wnx1ESRm2RW9v2kIYxx0ktcY2n9v4AJ+L0x9gHWG/XnixfnYErFddZnW3+1NMQK2 N/HbnEumqoUU1UdU5oWj1mJN3WtrOGJ2buur3huujAZbNpbyFSB6CUBJZlBEZrhgo6eF tBrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@comcastmailservice.net header.s=20180828_2048 header.b=buB3nxWt; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=pobox.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x7si2342578oto.262.2020.03.19.21.29.33; Thu, 19 Mar 2020 21:29:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@comcastmailservice.net header.s=20180828_2048 header.b=buB3nxWt; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=pobox.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726969AbgCTE3V (ORCPT + 99 others); Fri, 20 Mar 2020 00:29:21 -0400 Received: from resqmta-po-10v.sys.comcast.net ([96.114.154.169]:59309 "EHLO resqmta-po-10v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725996AbgCTE3V (ORCPT ); Fri, 20 Mar 2020 00:29:21 -0400 X-Greylist: delayed 488 seconds by postgrey-1.27 at vger.kernel.org; Fri, 20 Mar 2020 00:29:21 EDT Received: from resomta-po-05v.sys.comcast.net ([96.114.154.229]) by resqmta-po-10v.sys.comcast.net with ESMTP id F919jk0yP2WZ8F99ljeRkG; Fri, 20 Mar 2020 04:21:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcastmailservice.net; s=20180828_2048; t=1584678073; bh=TRdmzlBZKIjp6suR+uwhZUwUF+19FuwsfRRrul9c3mY=; h=Received:Received:To:From:Subject:Message-ID:Date:MIME-Version: Content-Type; b=buB3nxWtkq5dqHDz5UzAj1x5x+8ZoAfGWcRmRR2TCS+xPgY1rBZDYe+oLgYShHq6d XJKDtX/yjKR9eAP5CuXzPRP8aH2NmPOHDp3/wU3JFHxUcF6Ypx+0yqaveG2RYXDfWq XFP6APu85GfT/kJAQs2FLE/8k6qEeH4h0FpDfClyVJd/iVv979PDcxtHUrgYYTCRCB UQCiKVl89qUPSnIKXiseerEy+22d3cJfflSU5srPHym/DS5WPTqgU6wk6a/xwADxgF hE3jtJaCti//DGQJ+bwRUp/hpwDY+902qFV13hVcjmxMbWWjnbs9Dhg8VIpmd1XRel kbhW64llDt9ZA== Received: from touchy.whiterc.com ([IPv6:2601:601:1400:7284:bb0f:f2d7:bbd9:d943]) by resomta-po-05v.sys.comcast.net with ESMTPSA id F99kjBNiuOfMQF99kjix7e; Fri, 20 Mar 2020 04:21:12 +0000 X-Xfinity-VMeta: sc=0.00;st=legit To: linux-wireless@vger.kernel.org From: Robert White Subject: hostapd :: Set attributes e.g. group id on created 4addr interfaces Message-ID: <920d4a67-a746-d9bf-d318-d9bc130bbe3a@pobox.com> Date: Fri, 20 Mar 2020 04:21:12 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Howdy, It'd be really nice if there was a global up-down hook or something in hostapd that would let me set the interface group ID when a station interface is created on a 4addr link. I couldn't find a hook to invoke on device creation; and invoking a whole hook might be a little costly. I don't see a lot of relevant properties to set but group ID is really helpful for firewall rules on transient interfaces. Since it can be done when doing an ip link add, I'd assume setting the simpler properties like this should be available at the API level. So being able to set that property at a minimum during device creation would be really helpful, and there may be use cases for other things. I don't have the necessary skill set with hostapd to submit a sample implementation at this time, so color me a demanding user (ha ha ha).