Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1150917rbb; Sun, 25 Feb 2024 23:30:08 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUPk3mgkGE0/Z4eAERnK95d2MBsUbFFpbYwpCfZuhAy5KglaKEy4OBE6lEx89Ra3ycHmEcWyru81Fexu2Lpq4DssJu/yfYCODu4ZVlnDw== X-Google-Smtp-Source: AGHT+IEqmhDYCSwzvp9frau+leqTr7z9FJUGXD08BrQwbjhtMVH9th7bu2AICH0VcHftCHSB1Eal X-Received: by 2002:aa7:c348:0:b0:566:1684:5037 with SMTP id j8-20020aa7c348000000b0056616845037mr100397edr.17.1708932608043; Sun, 25 Feb 2024 23:30:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708932608; cv=pass; d=google.com; s=arc-20160816; b=AGwbJHHtdh8qfmSrbAsXkvwMy6yQlgkReiPnn7TcilEp+95crNAe+9l+Yb9C0NhUCb wYDkBPBJ6LVQwGFsM2A3+FDAqBwhDRoJEoKlRVzTOqcTRXyL7GAs6vvwEFmJT/zV0qot 9ZZvINxqOq9J9RPHbsUd8fyupHOlfx0y4ykUueHapT822AvskuClwGh0f5FV/nlcSQDU 6Ae4JFGMkrp4VD8nujVz0PTfkoAHINKUeTYGMGSb53OA+lc2J/1c/Z16CcN86c6BiCwP +JmR16Kw7jMV31PQu8Qkx1IFwV/9wltZt0CIFx3MCSE1uZMwwNS05POI9kskhXGU9RiN 0aPA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=HsIrv8ezPBDGARg525yyVzXpeh1s8i6oxjE8WSvKIDg=; fh=A6VhHI7NKHnmfjjs9vgKiwsl8TnYIjA9XaJXQoRXXsA=; b=bnL01IerorL359NsCDG6dhnHJiazFzqQHg221x+pTdIBWfQXV/kF8SAg8K9xQ+8sRi Wpad9+U1KDiSIrJrx9rlutyDWT8FQdt2iqkapStlec8y7SZSCJ9BSMEzSrl53n4w0Yvu uq6ND/UFFk+KlaPzhgvPfq4CkmWSVVBoR6Rsqw9R9eR6L9m6pNYwZCfIES06ejrtxCag VtODNHuCH/3KK2SeSUxFWfqqsoA/im5O3InWfgjghaPl5m1234JXvUWe/c7KgujL+kMw 7tnEdqkm/TZynFgkAX2bubkcOxztIQFtsRvE6tbVCzPsppX27SsbQtuN3Gy5hmDZGOmW HYfw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="iwsyrG/s"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-nfs+bounces-2085-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-nfs+bounces-2085-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id y41-20020a50bb2c000000b0056586a5fdcesi1763988ede.301.2024.02.25.23.30.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Feb 2024 23:30:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-2085-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="iwsyrG/s"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-nfs+bounces-2085-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-nfs+bounces-2085-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id CA6181F211A9 for ; Mon, 26 Feb 2024 07:30:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 01BC31BF28; Mon, 26 Feb 2024 07:30:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="iwsyrG/s" X-Original-To: linux-nfs@vger.kernel.org Received: from mail-oi1-f171.google.com (mail-oi1-f171.google.com [209.85.167.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6D9DF1BF20 for ; Mon, 26 Feb 2024 07:30:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708932603; cv=none; b=oj/8WxN/JMHmoePrtFBjCkS26bxXMf/EVkuWuojI6LtnRok1JTCmgWf5iCNo1Y894xDfvHGQYVt/9iygnDV1oAJMEwrr7SBT7hRaMQzYTnwcDu2O89vDT7PSh/m7fWEt2u7OorP6Mr7C3PiBQi4jxEymyhoKahmRhalEPOFb8ns= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708932603; c=relaxed/simple; bh=HsIrv8ezPBDGARg525yyVzXpeh1s8i6oxjE8WSvKIDg=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Content-Type; b=sgIbwXY0QAkRQJ6TJTAgOpIz/0eqmYpTvy+hL90VR+oSXLfj0m9YZXw2JLmlzM9tN9SQBQ6aaYOz6NGs7ZAe/EduSVd5I3IAHzSNMqX6pDaXyqqz5WHvfG6YF0tugoy7kEKSH23dR0809nL6ZOIX3x3tP9HhuDXti1Gu12ry07U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=iwsyrG/s; arc=none smtp.client-ip=209.85.167.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oi1-f171.google.com with SMTP id 5614622812f47-3c199237eaeso1232708b6e.0 for ; Sun, 25 Feb 2024 23:30:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708932601; x=1709537401; darn=vger.kernel.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=HsIrv8ezPBDGARg525yyVzXpeh1s8i6oxjE8WSvKIDg=; b=iwsyrG/sWa7FD4WlT3q988oQQyRPUhE31KER4IVYQvOA6zKBIBdn0WLfPyjLbZG604 Se5B62frAQCJC7eshxUSAR9yeCfQH3tszJvzRrkoxliNaiNChQRrneAymVTWKbwK8+IH RqX/x2PPpZNmWHBNALadDPMwyMjxbGyZg4VXN56NSGxomhjl0esR5usM83sUrgyrtr23 wvtMHCVRZCzQO59ZrWLzCfBdhHLhyKhfIT+syvE+YcFKYFjK5r6e4+QosK9RJywKRrZS eblkqv89M3PYqINKn2DcaAP4YxM6uLJ9iyvjZuTuugpYFevrzgqApScx4EnqR9jF0JaU zs1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708932601; x=1709537401; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HsIrv8ezPBDGARg525yyVzXpeh1s8i6oxjE8WSvKIDg=; b=RYDvNYLr6BgEv9jw0gyD9lyoJ4tNHIWVK6TGCn0ZVA2jA213kioLN4Ccs3+U9kKfan /XwV7cVDTy3J9TxWmi3ReN5tH7baSbNfbQVm3HuPcHSAbUON92IaTXqVsVgO4UkCaBRL sQNMDEvGugxb1ZGla3TlmgndZZrP8PnnOQiDohXpDZ5SE6DNhH3wEQ/YhKNiMU0sXuhg i0rA/jmMwCcbIacaTzd5txtxY01hJq4e/WvJKys5hiWB3LOBakq5yaKARrScEnkhFaV6 d28AVTNjMwpYQhN8jek6KR4ONYHXMYTR8lB4hQkQFvMN1ibJuOP8TRarc9hNiVorow5b Lcqw== X-Gm-Message-State: AOJu0Yw6fq2YijtBJ7yTfJ2sTr2X23q1l0NguCUjNHnB8J7TONkbQiTy ZD8hTLb1HhF/Xh+FnFgLohBiwqYjm1pTNwOn+thYxg7v0Zp7rrINk3znXghK15pt90Uv4ZLFkvM wFaYOGm5xnHo+iiVYelcSAIE/MnWLwcd1 X-Received: by 2002:a05:6871:79a2:b0:21e:a8ff:1d2e with SMTP id pb34-20020a05687179a200b0021ea8ff1d2emr7818969oac.34.1708932601378; Sun, 25 Feb 2024 23:30:01 -0800 (PST) Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <2e4760a87e1fc6906562442c27933e830635a929.camel@kernel.org> <7e499dd1deafcf043229973968920947453d4eba.camel@kernel.org> In-Reply-To: <7e499dd1deafcf043229973968920947453d4eba.camel@kernel.org> From: Martin Wege Date: Mon, 26 Feb 2024 08:30:00 +0100 Message-ID: Subject: Re: SELinux-Support in Linux NFSv4.1 impl? To: linux-nfs Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Feb 18, 2024 at 3:35=E2=80=AFPM Jeff Layton wr= ote: > > On Sun, 2024-02-18 at 16:16 +0200, Guy Keren wrote: > > On Sun, Feb 18, 2024 at 3:55=E2=80=AFPM Jeff Layton wrote: > > > > > > On Sat, 2024-02-17 at 14:37 +0100, Martin Wege wrote: > > > > On Wed, Feb 14, 2024 at 12:28=E2=80=AFPM Jeff Layton wrote: > > > > > > > > > > On Wed, 2024-02-14 at 10:46 +0100, Martin Wege wrote: > > > > > > Hello, > > > > > > > > > > > > Does the Linux implementation server&client for NFSv4.1 support= SELinux? > > > > > > > > > > > > > > > > > > > > > > Labeled NFS is a NFSv4.2 feature. The Linux client and server do = support > > > > > > > > Is there documentation on how to set this up? Will this work if the > > > > root fs ('/') is NFSv4.2? > > > > > > > > > > There isn't much to set up. If you mount using NFSv4.2, the client an= d > > > server should negotiate using SELinux (assuming both are SELinux > > > enabled) and the SELinux contexts should (mostly) be projected across > > > the wire. > > > > Jeff - as far as i know, while it is possible for the client to > > get/set the secure labels of files on the server - there is no way for > > the client to tell the server which user is performing the specific > > access operation - so the 'FULL MODE' of nfs4.2 security labels cannot > > work - only the 'Limited Server Mode' mode (i.e. only the client > > verifies the security labels - the server does not). please correct me > > if i'm wrong. > > > > > > (re-cc'ing the mailing list...) > > That is correct. I'm not aware of anyone having implented "Full mode" as > of yet anywhere. > > The Linux server is a "dumb" labeled NFS server that just projects the > contexts to the clients and doesn't try to do any enforcement. Is this documented somehere? "NFSv4.2 SELinux HOWTO" maybe? Thanks, Martin