Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2040103imu; Wed, 12 Dec 2018 08:31:13 -0800 (PST) X-Google-Smtp-Source: AFSGD/XmFe68IcLYK6rXf1nMzs48EPJIr0AEgKDqzDtWy6ImKD1I8+JPWTuIOssqzQnCjWTWVTzk X-Received: by 2002:a62:3811:: with SMTP id f17mr21205527pfa.206.1544632272978; Wed, 12 Dec 2018 08:31:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544632272; cv=none; d=google.com; s=arc-20160816; b=xHa8Eyi2ItuJlWk0avm53auks3xDG3Ba/18R8wltQ7KFqT+lTiSRUCLVfIZgJvLHkT S8SSPUAuxWBrO6Hs93gsAgYntUpEmqR+awChrZghHq8rZlLZgVFSrKVZLpaz1ocMnzXr b7StVYwZ6/lsyBlUit/7b2zoePPDadWwl7Vu3r0fUHeChlev4aZ4LIuWImwEs7ixMdFZ 1Xg6A6y0ewXw0aeIq4wjJjLc567cZHcWdvvzcLLLewKRXYMEpx23aNV9LS8bRL6XxbMQ mO5ZxV49uz1ZcWtkIrnfRnkrQ0sZ2XEt4nrxL638Z4ojY5ahhTq3cEFYx1U4XwPL3nLd jc4g== 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:mime-version :feedback-id:references:in-reply-to:message-id:subject:reply-to:cc :from:to:dkim-signature:date; bh=awWrFloh4DrDSwCiHywdoy1L7wdWXOkQqJ6DbzyafBM=; b=KPIRHPABSK3R5p7uILavZA1ol20vQuC5FCwKEqqxxlDnCrVz583OHAD3tDXh8z/cEU gFlQN55+Rp5+wSZ6CP/7In5KBl4gghrJ7zQHw+/XCjDbaJovBm/+SRRfrskuYa58j6h4 1kut4jVs23uwrp4WmNZb4fFHEdmrsBTW5MxLhRZkBbzBW+mlZSwjz/v/RMtJy4pc5kP8 3mRmoGILigp/prKTunZ/K9eSUV59hVJAxuujQo+7PdohO6dW4YDWHGJRt5Go9PTDoJJr UJFwUFkYHuNNwBDTe20j6OdrS3efPq64ICX/qHOIrKrY/GlSsFD7+BlGfx9rYxz3SeVp eYLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.ch header.s=default header.b=nrSs59j4; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.ch Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cd16si15918142plb.47.2018.12.12.08.30.58; Wed, 12 Dec 2018 08:31:12 -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; dkim=pass header.i=@protonmail.ch header.s=default header.b=nrSs59j4; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727901AbeLLQ3z (ORCPT + 99 others); Wed, 12 Dec 2018 11:29:55 -0500 Received: from mail-40136.protonmail.ch ([185.70.40.136]:49685 "EHLO mail-40136.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726358AbeLLQ3w (ORCPT ); Wed, 12 Dec 2018 11:29:52 -0500 Date: Wed, 12 Dec 2018 16:29:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.ch; s=default; t=1544632189; bh=awWrFloh4DrDSwCiHywdoy1L7wdWXOkQqJ6DbzyafBM=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References: Feedback-ID:From; b=nrSs59j4PnnEBNJWqyWArJvndNsbxWss4IV77OeveMSbKkodJylHD9PtT5RiwtdHj pqUZ8i2GdI9/mreEYfuRab9/Ayf3R2rhvFaIX0cUiaJdhfSEckpejCZBZZRK8b0gDj KQm7yVVJ4+fpfYVCYgRLa85e0/vKirkgxHbbLZ0M= To: =?UTF-8?Q?Micka=C3=ABl_Sala=C3=BCn?= From: Jordan Glover Cc: "linux-kernel@vger.kernel.org" , Al Viro , James Morris , Jonathan Corbet , Kees Cook , Matthew Garrett , Michael Kerrisk , =?UTF-8?Q?Micka=C3=ABl_Sala=C3=BCn?= , Mimi Zohar , =?UTF-8?Q?Philippe_Tr=C3=A9buchet?= , Shuah Khan , Thibaut Sautereau , Vincent Strubel , Yves-Alexis Perez , "kernel-hardening@lists.openwall.com" , "linux-api@vger.kernel.org" , "linux-security-module@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" Reply-To: Jordan Glover Subject: Re: [RFC PATCH v1 0/5] Add support for O_MAYEXEC Message-ID: In-Reply-To: <20181212081712.32347-1-mic@digikod.net> References: <20181212081712.32347-1-mic@digikod.net> Feedback-ID: QEdvdaLhFJaqnofhWA-dldGwsuoeDdDw7vz0UPs8r8sanA3bIt8zJdf4aDqYKSy4gJuZ0WvFYJtvq21y6ge_uQ==:Ext:ProtonMail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.7 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,FREEMAIL_REPLYTO_END_DIGIT autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.protonmail.ch Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday, December 12, 2018 9:17 AM, Micka=C3=ABl Sala=C3=BCn wrote: > Hi, > > The goal of this patch series is to control script interpretation. A > new O_MAYEXEC flag used by sys_open() is added to enable userland script > interpreter to delegate to the kernel (and thus the system security > policy) the permission to interpret scripts or other files containing > what can be seen as commands. > > The security policy is the responsibility of an LSM. A basic > system-wide policy is implemented with Yama and configurable through a > sysctl. > > The initial idea come from CLIP OS and the original implementation has > been used for more than 10 years: > https://github.com/clipos-archive/clipos4_doc > > An introduction to O_MAYEXEC was given at the Linux Security Summit > Europe 2018 - Linux Kernel Security Contributions by ANSSI: > https://www.youtube.com/watch?v=3DchNjCRtPKQY&t=3D17m15s > The "write xor execute" principle was explained at Kernel Recipes 2018 - > CLIP OS: a defense-in-depth OS: > https://www.youtube.com/watch?v=3DPjRE0uBtkHU&t=3D11m14s > > This patch series can be applied on top of v4.20-rc6. This can be > tested with CONFIG_SECURITY_YAMA. I would really appreciate > constructive comments on this RFC. > > Regards, > Are various interpreters upstreams interested in adding support for O_MAYEXEC if it land in kernel? Did you contacted them about this? Jordan