Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp127996imj; Fri, 8 Feb 2019 16:29:32 -0800 (PST) X-Google-Smtp-Source: AHgI3IZfcA55BMWAGLtVuu1FCHpqjCh/4iz8Lr2i1Twq2icl63UZQZtRWUlOBzFNV6X5pJitHuXF X-Received: by 2002:a65:43c5:: with SMTP id n5mr7380642pgp.250.1549672172607; Fri, 08 Feb 2019 16:29:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549672172; cv=none; d=google.com; s=arc-20160816; b=NDzX/oZm1MlB45xhEilOf26/1/TXbxRlZAANwx3v9e5YoO9DZe3UssfXiHuAYuDF+B PcG0oOobakVBqXRm7ly+P8rfQxkpsUtsSepqf39lO/oZKlvMo0v05b7tMmzCMRFwu0qP RlGx2HPk2/2oZxisCWKYSOcLGlhqT4XCNAKvOrdVUYUNwibJfQfIo7nrT+saxxvZkWdq ucFOnTJYy/EN3PqSxBwi8ClFI3xHTKZtdCZEbOsPiudChXpNBiWrSNga1On/jYpUhQ3D 20XjhnlVHdhkVahqNyxweRU5p+fSe9kND3OUySdnO7WYHy/U24iLUWK0ahwjvxveeiKj qOJg== 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:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=s272RdS0IJQGsZjZQZ+QhAOzz4CJa6BeSgHXgw55Anc=; b=SEqziRM37tFQpdAhgmwSMUx1EebVoq0qEuI7QxBohYvFDEofaa+S1n3kPxfyprBY0N 2cNt4n57bKq9sCxNFXn4fpi9SasjRMAP5uxCqVUIo2uxQfpXdkbPWPQhY/7A3l5QimUf xgmmJtfVfwKhFNT7arpMLCy5X9fLtb6I9cO0w2TU0/8QYQWOX85Jm81XOLO2JfXcM2Qc oQG65m9Wv1x00Z23hTYoIDQ4UzYfQaLmQOM2R1BN5cmC44tdKi0C0ZLCFDTGlvRGxlRo 7E6nmQrPN2oz1M8zunrZZDvjxQVKGvDmYoWKzB4J+v2kXRJxBJRQRQsaIhGAO/Ab7u2b IOUQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w5si3301484pgr.394.2019.02.08.16.29.16; Fri, 08 Feb 2019 16:29:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726791AbfBIA3M (ORCPT + 99 others); Fri, 8 Feb 2019 19:29:12 -0500 Received: from www262.sakura.ne.jp ([202.181.97.72]:14113 "EHLO www262.sakura.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726244AbfBIA3L (ORCPT ); Fri, 8 Feb 2019 19:29:11 -0500 Received: from fsav405.sakura.ne.jp (fsav405.sakura.ne.jp [133.242.250.104]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id x190SIOO019237; Sat, 9 Feb 2019 09:28:18 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav405.sakura.ne.jp (F-Secure/fsigk_smtp/530/fsav405.sakura.ne.jp); Sat, 09 Feb 2019 09:28:18 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/530/fsav405.sakura.ne.jp) Received: from [192.168.1.8] (softbank126126163036.bbtec.net [126.126.163.36]) (authenticated bits=0) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id x190SEkZ019199 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NO); Sat, 9 Feb 2019 09:28:18 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Subject: Re: [PATCH] LSM: Allow syzbot to ignore security= parameter. To: Casey Schaufler , Kees Cook Cc: Dmitry Vyukov , Paul Moore , Stephen Smalley , syzbot , tyhicks@canonical.com, John Johansen , James Morris , LKML , linux-security-module@vger.kernel.org, Serge Hallyn , syzkaller-bugs , Jeffrey Vander Stoep , SELinux , Russell Coker , Laurent Bigonville , syzkaller , Andrew Morton References: <8f48e1d0-c109-f8a9-ea94-9659b16cae49@i-love.sakura.ne.jp> <0d23d1a5-d4af-debf-6b5f-aaaf698daaa8@schaufler-ca.com> <201902070230.x172UUG6002087@www262.sakura.ne.jp> <6def6199-0235-7c37-974c-baf731725606@schaufler-ca.com> <54c0ae39-f35c-bdcd-a217-8e62ef14e41b@i-love.sakura.ne.jp> <54f15845-f256-f503-98ce-64a1b88a5f9f@schaufler-ca.com> From: Tetsuo Handa Message-ID: <3a775445-c161-f104-ebf6-5fa1c9e9dac8@i-love.sakura.ne.jp> Date: Sat, 9 Feb 2019 09:28:14 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: <54f15845-f256-f503-98ce-64a1b88a5f9f@schaufler-ca.com> Content-Type: text/plain; charset=iso-2022-jp Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/02/09 1:23, Casey Schaufler wrote: > On 2/8/2019 2:52 AM, Tetsuo Handa wrote: >> To help administrators easily understand what LSM modules are possibly enabled by default (which >> have to be fetched from e.g. /boot/config-`uname -r`) > > $ cat /sys/kernel/security/lsm > /sys/kernel/security/lsm is list of "actually" enabled modules, isn't it? What I want is "possibly" enabled modules. Ubuntu would chose from either (a) explicitly add security=apparmor to kernel command line or (b) explicitly remove tomoyo from CONFIG_LSM at kernel config in order not to enable TOMOYO for those who want to enable only one of SELinux/Smack/AppArmor. And for those who want to enable TOMOYO, I think that (b) (in other words, add lsm="modules listed in CONFIG_LSM" + ",tomoyo" ) will retain compatibility when it becomes possible to enable more than one of SELinux/Smack/AppArmor at the same time. If we can know "possibly" enabled modules from dmesg, users don't need to look at e.g. /boot/config-`uname -r`. It is not essential, but it's handy.