From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754716AbcI2GTl (ORCPT ); Thu, 29 Sep 2016 02:19:41 -0400 Received: from mail-wm0-f45.google.com ([74.125.82.45]:32862 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751038AbcI2GTb (ORCPT ); Thu, 29 Sep 2016 02:19:31 -0400 Date: Thu, 29 Sep 2016 08:19:27 +0200 From: Ingo Molnar To: Jann Horn Cc: security@kernel.org, Alexander Viro , Paul Moore , Stephen Smalley , Eric Paris , James Morris , "Serge E. Hallyn" , Nick Kralevich , Janis Danisevskis , linux-security-module@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 3/3] selinux: require EXECMEM for forced ptrace poke Message-ID: <20160929061927.GA21794@gmail.com> References: <1475103281-7989-1-git-send-email-jann@thejh.net> <1475103281-7989-4-git-send-email-jann@thejh.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1475103281-7989-4-git-send-email-jann@thejh.net> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Jann Horn wrote: > +{ > + /* Permitting a write to readonly memory is fine - making the readonly > + * memory executable afterwards would require EXECMOD permission because > + * anon_vma would be non-NULL. > + */ Minor stylistic nit: please fix this comment to be visually symmetric. (There's another one introduced by one of your other patches.) Thanks, Ingo