Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2256283ybt; Tue, 16 Jun 2020 00:53:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOgh/RYVGqNrQf8SIfojFMCKt70M83n21zgq3s7cvfsaij4YJAwCsB69FltnST3LOhsTLM X-Received: by 2002:a17:906:1cd3:: with SMTP id i19mr1523619ejh.321.1592294009545; Tue, 16 Jun 2020 00:53:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592294009; cv=none; d=google.com; s=arc-20160816; b=JdQZmSevXDM7BjaeeBK2fCwdV8EVGPRNL3wPn+XkJUPYB1qiSQGxT7pwaoM5sOLMgy o6GU4t18X1km94ZpxQ665CE8MNQ+9uWZseL3z/fOmM5ZjZQkDl8qQfqnrybI8szAL8Jl 2Lkt4lDIKoK7Al67JnTES9gJMhr9Wg0v4XRodyBmhn4QHIwmTpHc0uywXggrf4+hau6g i75UabMl4cVQrKmd5YV4zhenmp1DYWuFjBIndhj3TMHDvlO9ZgW945fsEmAg9LKWVJfn 1U0miExk5DmI6Z6Ge3wZb1xUIlTf2P6bMul16WDO+Y+J2ml6ztsYVvatPokIwYx3zBOX R6Aw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=aNHAhNI6ZTS0Tgwm1Tz8nA62WMbjyUFexQ8Av4x5DPE=; b=N0mtgi7aGA8sPpzDjn0Aaji+lqi8TlF9EHkp81upAM9q8B6RBMXYx76GaOFqpXYki1 BF0dPlVLBtJiXwI2wS+036FcbpmfgqBzYXztDQpOe7Xny6TOF2EuiSWA1mTvk3FNj8Hj 7+MhbW+hBsxp4kWbLalHp31OFHARmynD8Bez5HKfPCFjI01eTWGaGFo2OXKRi/8LtqeZ 8OnT/ytilGUVHaq7Yrbk8vbP7etWTukGq1L0ePHMA2yKbR/MwS1c1x8VHVp/YGhQOQvh kgPfhFs0E+GefqWLh33sXQ1vRa/UlsVSKwcYp9/wfF0frVgvciZbrANTy5KRpBDeLWfW I7BQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="Mha/1v4Z"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n27si10026458eja.232.2020.06.16.00.53.07; Tue, 16 Jun 2020 00:53:29 -0700 (PDT) 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; dkim=pass header.i=@chromium.org header.s=google header.b="Mha/1v4Z"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727831AbgFPHue (ORCPT + 99 others); Tue, 16 Jun 2020 03:50:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725843AbgFPHts (ORCPT ); Tue, 16 Jun 2020 03:49:48 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6DFDC08C5C6 for ; Tue, 16 Jun 2020 00:49:45 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id s23so9104428pfh.7 for ; Tue, 16 Jun 2020 00:49:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=aNHAhNI6ZTS0Tgwm1Tz8nA62WMbjyUFexQ8Av4x5DPE=; b=Mha/1v4ZCwL99EzxQ318yAgdODuTalg/C5a5af5exiokd8c5p7ofhUjPq9F2KXq+2Z y7yP3+k5eNCRMrakWOPlm6eIxB24HvrLbf760fTeCcQu5b/qlXMhpecyVB/F0VkMtoBL zMVf+teQCmyVijKGcfvhfnSjCaUXm3PFBJyUc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=aNHAhNI6ZTS0Tgwm1Tz8nA62WMbjyUFexQ8Av4x5DPE=; b=iqOJ8GEF6nE6aw4SJE1acko/ZkfzEoWTh6NW/gzmzCirSW/xXK6zNxoIS+AMQygXXg olbqj0+Cl8uE4TtYcqr9xYQ/3ifr9SRzO7yGhoV0WnVc5Xb1znLllOwkk5xX1uHaI4Bt yzPTf5Rc2frc9B1xbLpP/OjspnQ+T56UfUe2tTdEHnU9/Y6DowaOTDHGNR8HMJFpv7AY aUsjx0vd1eCpQe9M0oRrb6iRO77zUFeQVJBV6rvXDmAP29cVZopfyczfF78ekKNa1MGb P3+3k7iopVoKd5A3Lhe//ZuO1iXQZK83DZnVYUpb+E5i+z9W0xmTTAreyPG0H1/7OO0f XRuA== X-Gm-Message-State: AOAM532WH/kAsNZRQs3cLn0QEfTNNx3n9j1xInV1+asS7FF9hJ0oODnc FeUGAAk+hw97F9IbW3HbjvxfiQ== X-Received: by 2002:aa7:972b:: with SMTP id k11mr1003541pfg.299.1592293785373; Tue, 16 Jun 2020 00:49:45 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id t76sm14171409pfc.220.2020.06.16.00.49.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jun 2020 00:49:42 -0700 (PDT) From: Kees Cook To: linux-kernel@vger.kernel.org Cc: Kees Cook , Christian Brauner , Sargun Dhillon , Tycho Andersen , Jann Horn , "zhujianwei (C)" , Dave Hansen , Matthew Wilcox , Andy Lutomirski , Will Drewry , Shuah Khan , Matt Denton , Chris Palmer , Jeffrey Vander Stoep , Aleksa Sarai , Hehuazhen , x86@kernel.org, Linux Containers , linux-security-module@vger.kernel.org, linux-api@vger.kernel.org Subject: [PATCH 2/8] seccomp: Use pr_fmt Date: Tue, 16 Jun 2020 00:49:28 -0700 Message-Id: <20200616074934.1600036-3-keescook@chromium.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200616074934.1600036-1-keescook@chromium.org> References: <20200616074934.1600036-1-keescook@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Avoid open-coding "seccomp: " prefixes for pr_*() calls. Signed-off-by: Kees Cook --- kernel/seccomp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/seccomp.c b/kernel/seccomp.c index 0016cad0e605..a319700c04c4 100644 --- a/kernel/seccomp.c +++ b/kernel/seccomp.c @@ -13,6 +13,7 @@ * Mode 2 allows user-defined system call filters in the form * of Berkeley Packet Filters/Linux Socket Filters. */ +#define pr_fmt(fmt) "seccomp: " fmt #include #include @@ -1873,7 +1874,7 @@ static int __init seccomp_sysctl_init(void) hdr = register_sysctl_paths(seccomp_sysctl_path, seccomp_sysctl_table); if (!hdr) - pr_warn("seccomp: sysctl registration failed\n"); + pr_warn("sysctl registration failed\n"); else kmemleak_not_leak(hdr); -- 2.25.1