Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1486136ybi; Fri, 12 Jul 2019 17:20:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqyIfMhTcWZs6hg5N94Z9vULNf0Aj0smJ4E8VoSuw0WI0CMLe+mYJIEU6kxVfaOmJ+bOWozc X-Received: by 2002:a17:902:9a04:: with SMTP id v4mr14509159plp.95.1562977207415; Fri, 12 Jul 2019 17:20:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562977207; cv=none; d=google.com; s=arc-20160816; b=WDx86F7TwUi7ImNWbZpiDrm8AF5vcCSgktgb3fy75ptMQaRI8yDE0wlEAmks+Z0X8Q GliSK956zQlm2UOj66av5dln9dq0/NRgXja8kKl/lWYhTcJW2JNji3TaRpCTAlCQ405Y kZpxs+vBOey7ckJZrLvjaEUQJ+OkAjzHtpxdGcLEPDtW5WXUbD69BA3OZTIuON9HoiXB kmmDhPIQn59Cvc6BUIpHuQtGmgcqcqBeVLwenjPAdqXSXmJ0gETFnz0l6jges70dp0y8 e/6/UBwgtmQj9vKyz/p924Tc7APIIObORxQ+dS/8D08KTsPUrdn+2vHdAoQKPLbVwnM7 HOqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=q1Sk+82d4NQ3lSaWAlWZJTHnNm1ZB8RdB/LgG9TsUN8=; b=aN8MWhRy17vGVxGfBiUBCV1/ZFyopZp8RvZT0NhyhXHE9q5Z7lobjrnXIQ3eNMfuXk Uc4FgVjD3iMhwYlvYis3EkIj8LHRXnmhS8S+1eikZLdTJguoXTRV/FX0+US0qorRQOmM hi/ml0b5YUOq/SinX39xQe8E2tDU7TWqqnmQ0QPLVqdelkBeTUj9Bu00/SmoXBt/xc81 FSnLNB1+k6TRHNrPgepns9od+PjK3B9+jOCdCPj9xXKWzcz07EZpv9ZqclHw0W2ZLPj4 NLoxphGN+3Ao5M08rSTseR0CcbbfEdEJztN+fL3ap+w5JTBHlxBI5ST8VH5YXBBZoq4V yCmw== 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 y84si10128649pfc.33.2019.07.12.17.19.51; Fri, 12 Jul 2019 17:20:07 -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 S1727505AbfGMAPV (ORCPT + 99 others); Fri, 12 Jul 2019 20:15:21 -0400 Received: from namei.org ([65.99.196.166]:35010 "EHLO namei.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727118AbfGMAPV (ORCPT ); Fri, 12 Jul 2019 20:15:21 -0400 Received: from localhost (localhost [127.0.0.1]) by namei.org (8.14.4/8.14.4) with ESMTP id x6D0Efvn025905; Sat, 13 Jul 2019 00:14:41 GMT Date: Sat, 13 Jul 2019 10:14:41 +1000 (AEST) From: James Morris To: Salvatore Mesoraca cc: linux-kernel@vger.kernel.org, kernel-hardening@lists.openwall.com, linux-mm@kvack.org, linux-security-module@vger.kernel.org, Alexander Viro , Brad Spengler , Casey Schaufler , Christoph Hellwig , Jann Horn , Kees Cook , PaX Team , "Serge E. Hallyn" , Thomas Gleixner Subject: Re: [PATCH v5 01/12] S.A.R.A.: add documentation In-Reply-To: <1562410493-8661-2-git-send-email-s.mesoraca16@gmail.com> Message-ID: References: <1562410493-8661-1-git-send-email-s.mesoraca16@gmail.com> <1562410493-8661-2-git-send-email-s.mesoraca16@gmail.com> User-Agent: Alpine 2.21 (LRH 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 6 Jul 2019, Salvatore Mesoraca wrote: > Adding documentation for S.A.R.A. LSM. It would be good if you could add an operational overview to help people understand how it works in practice, e.g. setting policies for binaries via sara-xattr and global config via saractl (IIUC). It's difficult to understand if you have to visit several links to piece things together. > +S.A.R.A.'s Submodules > +===================== > + > +WX Protection > +------------- > +WX Protection aims to improve user-space programs security by applying: > + > +- `W^X enforcement`_ > +- `W!->X (once writable never executable) mprotect restriction`_ > +- `Executable MMAP prevention`_ > + > +All of the above features can be enabled or disabled both system wide > +or on a per executable basis through the use of configuration files managed by > +`saractl` [2]_. How complete is the WX protection provided by this module? How does it compare with other implementations (such as PaX's restricted mprotect). > +Parts of WX Protection are inspired by some of the features available in PaX. Some critical aspects are copied (e.g. trampoline emulation), so it's more than just inspired. Could you include more information in the description about what's been ported from PaX to SARA? -- James Morris