From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752030Ab2EMGWd (ORCPT ); Sun, 13 May 2012 02:22:33 -0400 Received: from mail-gg0-f174.google.com ([209.85.161.174]:57822 "EHLO mail-gg0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751392Ab2EMGWb (ORCPT ); Sun, 13 May 2012 02:22:31 -0400 Date: Sun, 13 May 2012 03:22:24 -0300 From: Gustavo Padovan To: linville@tuxdriver.com Cc: davem@davemloft.net, linux-wireless@vger.kernel.org, linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH 1/2] Bluetooth: notify userspace of security level change Message-ID: <20120513062224.GC15956@joana> Mail-Followup-To: Gustavo Padovan , linville@tuxdriver.com, davem@davemloft.net, linux-wireless@vger.kernel.org, linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org References: <20120512190900.GA15956@joana> <1336849910-29064-1-git-send-email-gustavo@padovan.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1336849910-29064-1-git-send-email-gustavo@padovan.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, * Gustavo Padovan [2012-05-12 16:11:49 -0300]: > When the userspace request a security level change it needs to be notified > of when the change is complete. > This patch make the socket non writable while the security request is > ongoing. If it succeeds POLL_OUT is emitted, otherwise the channel is > disconnected. I just sent a second version of this patches that includes comments Johan made in the last e-mail for better understanding of what the problem really is. Gustavo