Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3435160pxb; Mon, 16 Nov 2020 14:51:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJxAW07aOdlTHHIwl8KAizN0BMlysI/7N9P37K5GCDmcUGmAObCqQsyN50SNfp9piKJBtWHB X-Received: by 2002:a17:907:2631:: with SMTP id aq17mr4618616ejc.497.1605567079426; Mon, 16 Nov 2020 14:51:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605567079; cv=none; d=google.com; s=arc-20160816; b=J7efcv4sM7sepeCKDDMWXUYOwN2rPLq3D+8zJCtNpjGkKMv+jmXuq61ArBMV7oj1WK ZiTV7oroC+rUyjBS8ZJpdllZM3Qqtpf4XMAdvB0EwE5E1LxJYrKEXEdLl7koJjBg7kJJ CWC2mzOxPPGoEoSwd31OTeE1vN6WRvg2t9zC+G8FmGTD7DCp506YYyqXQgZS89zuG/Zt E8Dxjez0WkdtTHtM0ETKmkIPxCudlR0CUVmQFOqtmY1zzEoKxsxR0l5ZNmm7dmEx4bx+ 0eB5g0I/O8oOpglNo1g2xpVM4WinFJc3r5udtI4a7Qn6RWu56gz4mlqAgHXz7jRqk4eb YJ7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=oH+TyErk2ysXS69Cuw0IE41JcwGfzdiw3SlLc9BypbE=; b=eHA+vm85n2jCw67G/sDKjzohZZ0DKA0lscolu5gdiy4RqMP9nXzBdGbEahi7+ZWtzH B83/TjWajm5kL/Cza9mcBtl8Rc+kpbRBgd6rgYVTTPPwPXQAMZoJK0dDyBVKbeC94g5G i9t0xuU0Qo9Mx6AARS5aVfEK0Pd+VtCT35i77ipHs1fmBb6hcMeRY9lDbtueqMce0LZm 9/W5pYI0UFFDHWkuU6wfNOBDYCdyzU5Vn90ZtQg62/05yYfb2kz0S+EkXbmlB/YRhDw7 f2jdo6Mzl/8okM4UNa+4z5eh3CLaskBJcEHu3WKcdc5O5UIMMUnlkko1lKNF4WXFaclh fsiQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lg25si12759364ejb.173.2020.11.16.14.50.56; Mon, 16 Nov 2020 14:51:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729023AbgKPV0O (ORCPT + 99 others); Mon, 16 Nov 2020 16:26:14 -0500 Received: from jabberwock.ucw.cz ([46.255.230.98]:51910 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726035AbgKPV0N (ORCPT ); Mon, 16 Nov 2020 16:26:13 -0500 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id BE2B01C0B8D; Mon, 16 Nov 2020 22:26:09 +0100 (CET) Date: Mon, 16 Nov 2020 22:26:09 +0100 From: Pavel Machek To: =?iso-8859-1?Q?Micka=EBl_Sala=FCn?= Cc: James Morris , "Serge E . Hallyn" , Al Viro , Andy Lutomirski , Anton Ivanov , Arnd Bergmann , Casey Schaufler , Jann Horn , Jeff Dike , Jonathan Corbet , Kees Cook , Michael Kerrisk , Richard Weinberger , Shuah Khan , Vincent Dagonneau , kernel-hardening@lists.openwall.com, linux-api@vger.kernel.org, linux-arch@vger.kernel.org, linux-doc@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-security-module@vger.kernel.org, x86@kernel.org, =?iso-8859-1?Q?Micka=EBl_Sala=FCn?= Subject: Re: [PATCH v22 01/12] landlock: Add object management Message-ID: <20201116212609.GA13063@amd> References: <20201027200358.557003-1-mic@digikod.net> <20201027200358.557003-2-mic@digikod.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dDRMvlgZJXvWKvBx" Content-Disposition: inline In-Reply-To: <20201027200358.557003-2-mic@digikod.net> User-Agent: Mutt/1.5.23 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --dDRMvlgZJXvWKvBx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > A Landlock object enables to identify a kernel object (e.g. an inode). > A Landlock rule is a set of access rights allowed on an object. Rules > are grouped in rulesets that may be tied to a set of processes (i.e. > subjects) to enforce a scoped access-control (i.e. a domain). >=20 > Because Landlock's goal is to empower any process (especially > unprivileged ones) to sandbox themselves, we cannot rely on a > system-wide object identification such as file extended attributes. > +config SECURITY_LANDLOCK > + bool "Landlock support" > + depends on SECURITY > + select SECURITY_PATH > + help > + Landlock is a safe sandboxing mechanism which enables processes to > + restrict themselves (and their future children) by gradually > + enforcing tailored access control policies. A security policy is a > + set of access rights (e.g. open a file in read-only, make a > + directory, etc.) tied to a file hierarchy. Such policy can be config= ured > + and enforced by any processes for themselves thanks to dedicated syst= em > + calls: landlock_create_ruleset(), landlock_add_rule(), and > + landlock_enforce_ruleset_current(). How does it interact with setuid binaries? Being able to exec passwd in a sandbox sounds like ... fun way to get root? :-). Best regards, Pavel =09 --=20 http://www.livejournal.com/~pavelmachek --dDRMvlgZJXvWKvBx Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl+y7nAACgkQMOfwapXb+vJFfQCdHLSXWQS49bTl69HbD8dnhWOY ddEAnjooP/7zpi9Jvz2z3cUDPwsLBIua =fSBm -----END PGP SIGNATURE----- --dDRMvlgZJXvWKvBx--