Received: by 10.192.165.148 with SMTP id m20csp1093246imm; Wed, 2 May 2018 14:02:54 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoYNl9S2+/95YTVVRcCANjU6RwVsYpEcCspTLNJO7D6IznQdOcKZ3IFhxQKBuDBJ9M3k+Kc X-Received: by 10.98.162.30 with SMTP id m30mr4747998pff.251.1525294974907; Wed, 02 May 2018 14:02:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525294974; cv=none; d=google.com; s=arc-20160816; b=fckLAlIzhuxw2mmvi2b4Dx2neU2pqTqN62ImlyOLgKRG17kyF/XCMMYrBxwwQWputh LOQcv067RGQJ+tuFVW5C+pneMKQRRhB/saaRY58pB/Wsj4m5NBmocHBgeycO2SsTSIXA EuSLwka4P3ecHzFVV512eaqiG+ZNVb2eQGP8UuFV+d4Niyg7P807e7bPdKBbUvYV/4mS yQ5nqITvvZrR3oC28I1RvqcpqdprcEDwtM/sTY9tYq5C45TEn486ukydvxkgKljKi7SK aejjmyLNFfH29v2aVdADC87C8tLZ6eheEhGXzZ2VPre8aCSSsTfZ5B3/74gz6MqvFJDJ 1fCw== 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 :arc-authentication-results; bh=87E+h3euEsY8bSBzYe4wKO3LrpWGFDeQJB4J13yXpbc=; b=KNXGaykUDUYUhKeKGQJBMx+gJMrbKjxxpIb4D/EcZy/vv2MHGDYF11HDXpvswUZDlg rJiFU7J787yibmWE72dy8mkn/MK60DtW+k0mfcZ6oT4lo+WI3iIEv4oZUcMAOlXN7hM/ O8ryUBc9koGvO/u0DcduL5L2dBt1cP8Mpxe0TEEyWyLzNBW4V/7nUwlfWZsHaxmfCAu6 JwkEyb3W1812qjtulnvxswp2PZBluh9GnBDIId/SPDiHZ2cYzD5DxiEI0w08GL96IlbP aWD9fDKInXVOH/yUNxnJFN5SEDH3XFBeaXrKZO4jCL+7DO1Xejb/xCz6vbTWTJLUqwpj hPUg== 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 s3-v6si9576438plp.241.2018.05.02.14.02.40; Wed, 02 May 2018 14:02:54 -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 S1751551AbeEBVCI (ORCPT + 99 others); Wed, 2 May 2018 17:02:08 -0400 Received: from namei.org ([65.99.196.166]:59166 "EHLO namei.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751148AbeEBVCG (ORCPT ); Wed, 2 May 2018 17:02:06 -0400 Received: from localhost (localhost [127.0.0.1]) by namei.org (8.14.4/8.14.4) with ESMTP id w42L1tPV030781; Wed, 2 May 2018 21:01:55 GMT Date: Thu, 3 May 2018 07:01:55 +1000 (AEST) From: James Morris To: Tyler Hicks cc: linux-kernel@vger.kernel.org, Kees Cook , Andy Lutomirski , Will Drewry , Paul Moore , Eric Paris , Steve Grubb , Jonathan Corbet , linux-audit@redhat.com, linux-security-module@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: [PATCH v2 1/4] seccomp: Separate read and write code for actions_logged sysctl In-Reply-To: <1525276400-7161-2-git-send-email-tyhicks@canonical.com> Message-ID: References: <1525276400-7161-1-git-send-email-tyhicks@canonical.com> <1525276400-7161-2-git-send-email-tyhicks@canonical.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 Wed, 2 May 2018, Tyler Hicks wrote: > Break the read and write paths of the kernel.seccomp.actions_logged > sysctl into separate functions to maintain readability. An upcoming > change will need to audit writes, but not reads, of this sysctl which > would introduce too many conditional code paths on whether or not the > 'write' parameter evaluates to true. > > Signed-off-by: Tyler Hicks Reviewed-by: James Morris -- James Morris