From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net-next] bpfilter: don't pass O_CREAT when opening console for debug Date: Thu, 24 May 2018 09:37:41 -0400 (EDT) Message-ID: <20180524.093741.1053055813699982307.davem@davemloft.net> References: <20180524074119.32132-1-jakub.kicinski@netronome.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: alexei.starovoitov@gmail.com, netdev@vger.kernel.org, oss-drivers@netronome.com To: jakub.kicinski@netronome.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:44494 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965823AbeEXNho (ORCPT ); Thu, 24 May 2018 09:37:44 -0400 In-Reply-To: <20180524074119.32132-1-jakub.kicinski@netronome.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Jakub Kicinski Date: Thu, 24 May 2018 00:41:19 -0700 > Passing O_CREAT (00000100) to open means we should also pass file > mode as the third parameter. Creating /dev/console as a regular > file may not be helpful anyway, so simply drop the flag when > opening debug_fd. > > Fixes: d2ba09c17a06 ("net: add skeleton of bpfilter kernel module") > Signed-off-by: Jakub Kicinski Applied, thanks Jakub.