Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp1096928img; Fri, 22 Mar 2019 15:47:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqyKCjXAPJlJxehoaoktPmnr+rc1zSN4/k6ZOeJysM8/AZytdIGLU0hCLi8flXz/83J48JeY X-Received: by 2002:a62:be08:: with SMTP id l8mr11559413pff.162.1553294857334; Fri, 22 Mar 2019 15:47:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553294857; cv=none; d=google.com; s=arc-20160816; b=S50E8hwMgy2xmLLHaoicT7lT571sNVts+mGGGgaI9/mJNG48BcHSWQ3Fuuw/EPFJSR R/O30TetqPtWlhpxkwUjdR4W414IDjQOc6Zy0wP3dv8OifeI0J9Y5f02HzHdlMdxJYtv Chhd0dM2rXlU3o+670GMVdSyWJxA/BK2EQkCvUxBcXHlne4uzKVRKULCXoD8jcCKJDJ+ A5vx+fD04DTmN9ptCrlAWJZ97pIloQyKsG+wHZNdqNk2Gq9SuZTrrDI8Vohnwt9sBgw5 zK802r5JA01+/Ru6D1GN56zQeCaqmUhVUTVIGRX1UKj5nklnT1Opx/CU9tAjKtGd+lW2 WsIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=XIWF5r+FeAyzFbB/tkDZ1Cwr2CHIZ4gIs+pbAdf62jk=; b=oVr3YmYFa2g3vv137ekgqqrvTFObFeykVoSPpi6lLnTeHkmNJKvimlnETj0+fgerNm 1ILCtHyV9EFKqqTexMvbdeLmq4jtolcHTlGgzcU26SrEURH5o4nsd6GayAphDRnjqf/K aX2AwWoHaUslfIfreU1pvA0+iGhKG3QyEC96ebby0X9i8oHfcaBzHH84Bq3aPmCDFfRu w1C20K+/qUGilf9gSUiLC0UrkDLe7fJXxPYG4nJ2DDgQUxE+po4QbHQExAvf3jjkMSqR AOX9vSwWNw6I4ydFb2czAmMq92doqiVDte4WVpRtk1FjSemNkyS6spsygTvxrZFYuRhu ljEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="mDVknPG/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 193si7612016pgc.365.2019.03.22.15.47.22; Fri, 22 Mar 2019 15:47:37 -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; dkim=pass header.i=@chromium.org header.s=google header.b="mDVknPG/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728405AbfCVWpV (ORCPT + 99 others); Fri, 22 Mar 2019 18:45:21 -0400 Received: from mail-ua1-f68.google.com ([209.85.222.68]:40880 "EHLO mail-ua1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728093AbfCVWpT (ORCPT ); Fri, 22 Mar 2019 18:45:19 -0400 Received: by mail-ua1-f68.google.com with SMTP id b8so1278382uaq.7 for ; Fri, 22 Mar 2019 15:45:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XIWF5r+FeAyzFbB/tkDZ1Cwr2CHIZ4gIs+pbAdf62jk=; b=mDVknPG/ZmQ9thZGsga0cOASQO6ss/HgUzvEnM228t8RAHZw3hWN8WerQSRw/M9Afm roKYwxtmePMDQjQOFiG9eDPcbxc5qIXQ7j3PQuRoY0gRF/zV6uqJU5O6ZmaTOayzTu0v AMvnzZz7mA8KuTsxqEOUEc743wS0ObEQ1FXDI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XIWF5r+FeAyzFbB/tkDZ1Cwr2CHIZ4gIs+pbAdf62jk=; b=i5ziWIwiPrzIRVl7Ce5ImtMxD0VRBANT0WP+Ar+DS1EMMXJIpcZKnl/JtPyZ+d180Z DecZ7EnICCshltCZpuo7fPy8td/D0L3ajbx4o5q+6/a4fw0WlNRG3UTuAtav0csadgPC Y9PxVKbJB+0eFpg5DLZxNp96LMFPv5CrYFXBIaOwUVaIt8SUCUQgRiPol/ecEcYdcsMb q8XS6x+uiRKvHcdeiICm9RfR4mBfg14CyA1TQhwrLUAV4dbEcg7Ok83aV69EeAY551dO 3fl+mpzaF3rvjhxe+lApYNyrVcENDZsMAm6tId3LmnZOTg5R0XM0v5HgVYYNPTPu/dJ6 8WgQ== X-Gm-Message-State: APjAAAUIXhB8XH0hec4JJ/JhxLXwwDsh88fOMzvopJ5c/ysH16sGbLyp 3vch0yy6LYcPiQDOl+PpytlLb2sxz3I= X-Received: by 2002:ab0:4841:: with SMTP id c1mr5678017uad.137.1553294717867; Fri, 22 Mar 2019 15:45:17 -0700 (PDT) Received: from mail-vk1-f171.google.com (mail-vk1-f171.google.com. [209.85.221.171]) by smtp.gmail.com with ESMTPSA id t4sm4203963uaq.0.2019.03.22.15.45.16 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Mar 2019 15:45:16 -0700 (PDT) Received: by mail-vk1-f171.google.com with SMTP id o187so824363vkg.4 for ; Fri, 22 Mar 2019 15:45:16 -0700 (PDT) X-Received: by 2002:a1f:a4d:: with SMTP id 74mr3298849vkk.13.1553294715883; Fri, 22 Mar 2019 15:45:15 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: From: Kees Cook Date: Fri, 22 Mar 2019 15:45:04 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: mount.nfs: Protocol error after upgrade to linux/master To: Tetsuo Handa Cc: Casey Schaufler , Jakub Kicinski , linux-security-module , Trond Myklebust , "open list:NFS, SUNRPC, AND..." , Anna Schumaker , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 21, 2019 at 2:10 PM Tetsuo Handa wrote: > > On 2019/03/22 1:38, Kees Cook wrote: > > This is mostly good. I'd like to keep the other LSMs listed though > > (similar to what I had originally) so that if a legacy-major doesn't > > initialize, later ones will be. I want to remove the concept of > > "major" LSMs. The only thing that should matter is init order... > > Excuse me? Are you saying that > > if a legacy-major (which is defined as the "Default security module") > doesn't initialize, later ones (any of selinux,smack,tomoyo,apparmor > except the one which is defined as "Default security module") will be > initialized > > ? That sounds strange to me. Any of selinux,smack,tomoyo,apparmor can be > initialized when specified by lsm= kernel command line option (or security= > kernel command line option if lsm= kernel command line option is not > specified), won't it? 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. -Kees -- Kees Cook