Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2998566AbdD3X3Q (ORCPT ); Sun, 30 Apr 2017 19:29:16 -0400 Received: from namei.org ([65.99.196.166]:43092 "EHLO namei.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752466AbdD3X3K (ORCPT ); Sun, 30 Apr 2017 19:29:10 -0400 Date: Mon, 1 May 2017 09:28:52 +1000 (AEST) From: James Morris To: =?ISO-8859-15?Q?Micka=EBl_Sala=FCn?= cc: linux-kernel@vger.kernel.org, Casey Schaufler , James Morris , Kees Cook , "Serge E . Hallyn" , linux-security-module@vger.kernel.org Subject: Re: [PATCH v1] LSM: Enable multiple calls to security_add_hooks() for the same LSM In-Reply-To: <20170429190257.27137-1-mic@digikod.net> Message-ID: References: <20170429190257.27137-1-mic@digikod.net> User-Agent: Alpine 2.20 (LRH 67 2015-01-07) MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="1665246916-1424335240-1493594932=:12672" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 774 Lines: 24 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --1665246916-1424335240-1493594932=:12672 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT On Sat, 29 Apr 2017, Mickaël Salaün wrote: > Check if the registering LSM already registered hooks just before. This > enable to split hook declarations into multiple files without > registering multiple time the same LSM name, starting from commit > d69dece5f5b6 ("LSM: Add /sys/kernel/security/lsm"). Please include a detailed rationale for these patches. The above tells us very little about why they are needed. -- James Morris --1665246916-1424335240-1493594932=:12672--