Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp517684pxb; Wed, 22 Sep 2021 07:18:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6nr6X08/GMl/ugC8CaT8I51hTUH65brh0ABRAeZ5KwO0npq/TuRMM6o6D+L5fxTKSknQ5 X-Received: by 2002:a17:906:b08e:: with SMTP id x14mr41671901ejy.40.1632320286714; Wed, 22 Sep 2021 07:18:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632320286; cv=none; d=google.com; s=arc-20160816; b=tusv3DiqC9fcoGeIZC1m4OFAIJbhtZVk7fL7nRCMvXCwT+g5hW4NGZsw49iNjG0FYp Yon6fsqRHXfz99rA3nfM7+tzul+HLKVp/KIjtA0fGTSPmlQhv+4fMHUhED8ndtSpt9MC 2UUT0R4YVuUKCC3lYwObEznFZAE+UuhOUGqJHCpYlt/uWbVLj6HJU3zM0+pxUDboxT6K zvQjM6DAp22CAypJsyRLAKvjLsLaQosZopuq2o1kGnt8rqFjLQFzfPBjRHxuxPdFicha PDG7+4idHMLRRsbibNYSDhL8sQe8Q/PMZSQRRtaK92zGNskNUTdNbrAC/zUDMihEiwsS 0TGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=lEnvlrfdekKFoLAKUNb0WtbUdCAK0+f2ROs70PCqVko=; b=oJtG6+glhWQ8Dtm9CY6Q3MemUVQs6OsamY1r1sbjGHrcJX1Ykn3dOObCCxH7KB9PVQ 8fCcK1Wok4zmwczg0ZwVYEiu23DGshaDonjl6hjtbC1BVU32NmskyC/E9B/arSH28fbs w9OeqGINbP0iarwlYpW3XwC63kYg4ReJpNt6zcf+VFzwF3jXpI2nlfQa1MMQDnJDxFpy d1nUHGEqK07cDVr65NHkCq3rivIYXMwDnJkTk/A2v7bIbCOTQdSg4+QtF2Kh+49iXMDr RCzoM5W9+t8ed+sw45/x2RHMBtGmGOU8x0Ts0V6rkRpKpIU3ORrR0ICNxTcUWTdfcMqu owiQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 2si2373058ejh.749.2021.09.22.07.17.21; Wed, 22 Sep 2021 07:18:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232243AbhIVORG (ORCPT + 99 others); Wed, 22 Sep 2021 10:17:06 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:44423 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232401AbhIVORF (ORCPT ); Wed, 22 Sep 2021 10:17:05 -0400 Received: from smtpclient.apple (p5b3d2185.dip0.t-ipconnect.de [91.61.33.133]) by mail.holtmann.org (Postfix) with ESMTPSA id 5DA3ECED34; Wed, 22 Sep 2021 16:15:34 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: [PATCH] Bluetooth: hci_ldisc: require CAP_NET_ADMIN to attach N_HCI ldisc From: Marcel Holtmann In-Reply-To: <20210922115656.97723-1-cascardo@canonical.com> Date: Wed, 22 Sep 2021 16:15:32 +0200 Cc: linux-bluetooth , open list , Johan Hedberg , Luiz Augusto von Dentz Content-Transfer-Encoding: 7bit Message-Id: <5E587006-CB9D-4561-955D-F296DE70CD22@holtmann.org> References: <20210922115656.97723-1-cascardo@canonical.com> To: Thadeu Lima de Souza Cascardo X-Mailer: Apple Mail (2.3654.120.0.1.13) Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Thadeu, > Any unprivileged user can attach N_HCI ldisc and send packets coming from a > virtual controller by using PTYs. > > Require initial namespace CAP_NET_ADMIN to do that. > > Signed-off-by: Thadeu Lima de Souza Cascardo > --- > drivers/bluetooth/hci_ldisc.c | 3 +++ > 1 file changed, 3 insertions(+) patch has been applied to bluetooth-next tree. Regards Marcel