Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp1225853img; Fri, 22 Mar 2019 19:45:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqyhoL2heBl5pyfYAdi2w8HZ3KJgFP7K05cLqfYKs+BEEFqRy+5TpUmmGjl/jE3q/UAo71fy X-Received: by 2002:a17:902:24:: with SMTP id 33mr13133468pla.259.1553309122730; Fri, 22 Mar 2019 19:45:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553309122; cv=none; d=google.com; s=arc-20160816; b=sTr81lHWCdm97vS+tliJG79vQhvpB8Op/wvqFf9x7ZH0ZTmzfrFYg6mkcS8XK/g01I mfC33qJiRDyBY+hS2oOMj5ISATKGeYxlTEz+SAoUCbsDRrLg2GqSu+RSU4NlpJR/PR17 NSVGhjxj298VIRYSAhfimz+zXinB61CGgQrs8PHcPF33bFtCmTLKklx6mvB1PJjhZ08h cK4WiQhQ7nwg6LrINjIXwlVs2lRpmIek/SEUUfj1XsMnufmuO/wWEvHlXNl+Ok9ODxL6 N3HbvWZm8E4MVCyOqg9Wt6kTc6KjKIPlUcVaQMHBRSWjz/gRVdt9E91xaloGKierXsZ1 nRDQ== 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=jSGsq/R7iHjwLYAsWRKPAtXJ6pLTOno4meebr3lIzfo=; b=0195mnpGaDxaegGpHty0RX8hsZU8LEB3+8FkZm0hxcTMq1jgaj3glSXzJtIzfGqhW0 kZ8d43DYwu6cPNY9hNwziQnQ6KsqUbFQvFp1yNWMaB9CYXckUToBvd2QBJcNuXymhm7p uvYdOl9P+0dfa1qFZRqqcl+s/x8tYwLWxMdPI2u5tANmuxaowA7bcnPErrzwispaWc2K Givs38gVXCfr4QGGWUld3nDAgSP7TTcnyvZv3959iTqqsACOdhLkEDfg9jZS1SzqeiZv ElLC3p3ekvVeh3ppfGMg97k01qNDQ3aSXB0ZVgYG9n5ZlzayIAGaRi+mfkWMuKj0rWcT caEg== 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 e9si8262233pfn.275.2019.03.22.19.45.06; Fri, 22 Mar 2019 19:45:22 -0700 (PDT) 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 S1728243AbfCWCod (ORCPT + 99 others); Fri, 22 Mar 2019 22:44:33 -0400 Received: from www262.sakura.ne.jp ([202.181.97.72]:40234 "EHLO www262.sakura.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727900AbfCWCoc (ORCPT ); Fri, 22 Mar 2019 22:44:32 -0400 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 x2N2iFYO088513; Sat, 23 Mar 2019 11:44:15 +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, 23 Mar 2019 11:44:15 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/530/fsav405.sakura.ne.jp) Received: from [192.168.1.8] (softbank126094122116.bbtec.net [126.94.122.116]) (authenticated bits=0) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id x2N2iBSh088461 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NO); Sat, 23 Mar 2019 11:44:15 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Subject: Re: mount.nfs: Protocol error after upgrade to linux/master To: Kees Cook Cc: Casey Schaufler , Jakub Kicinski , linux-security-module , Trond Myklebust , "open list:NFS, SUNRPC, AND..." , Anna Schumaker , LKML References: <20190315110555.0807d015@cakuba.netronome.com> <20190315120105.5541ad46@cakuba.netronome.com> <20190315165440.53b9db3c@cakuba.netronome.com> <2bf23acd-22c4-a260-7648-845887a409d5@i-love.sakura.ne.jp> From: Tetsuo Handa Message-ID: <47335573-08f1-0efc-e51a-e2b6a6b69a01@i-love.sakura.ne.jp> Date: Sat, 23 Mar 2019 11:44:12 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.3 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 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/03/23 7:45, Kees Cook wrote: > It breaks the backward-compat for the "security=" line. If a system is > booted with CONFIG_LSM="minors...,apparmor" and "security=selinux", > neither apparmor nor selinux will be initialized. The logic on > "security=..." depends on the other LSMs being present in the list. Really? The logic on "security=..." does not depend on LSM_FLAG_LEGACY_MAJOR LSMs being present in the CONFIG_LSM= list, for ordered_lsm_parse() does (Step 1) Enable LSM_ORDER_FIRST module (i.e. capability). (Step 2) Disable LSM_FLAG_LEGACY_MAJOR modules which was not specified by "security=" parameter when "security=" parameter was specified. (Step 3) Enable modules specified by "lsm=" parameter (or CONFIG_LSM= settings if "lsm=" parameter was not specified). (Step 4) Enable up to one LSM_FLAG_LEGACY_MAJOR module which was specified by "security=" parameter when "security=" parameter was specified. (Step 5) Disable all unused modules. and (Step 4) will compensate for lack of that module in (Step 3).