Message ID | 20230720015032.45960-1-xiujianfeng@huawei.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp2839238vqt; Wed, 19 Jul 2023 19:34:29 -0700 (PDT) X-Google-Smtp-Source: APBJJlHgBeWecJ8xrEDNoHOOalOzaO8eJrl10V53OdCwDvb5sP6oDVgyeb0TBzy7tiZOuK43QpML X-Received: by 2002:a05:6871:413:b0:1b0:344b:a09f with SMTP id d19-20020a056871041300b001b0344ba09fmr376769oag.16.1689820468889; Wed, 19 Jul 2023 19:34:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689820468; cv=none; d=google.com; s=arc-20160816; b=AJxKvrFcS1ZbzHZRqrgKtyTfuQSSZuPOdRMg68BD6JkVHgGOlPiJnmBW5t0bnAyb8W FWxJ6shOJ5mkWR65bFonNyIyx6zszwQh+zh1jLNF7SkdzxIVAbTP/QHl988AkN+SiTEC qN/POYyWRKXmgykt64Y2fJKqMX8vvxxctGcaYH61rSFk82xkO8EhflZ+JMGfhV8rNDb+ Yc/sNLpBXvTRqD9pACCTE4RJS4MDTFBPyklGQcoOMbmFXue9/3hkpFJ90NADev6U6+QM UyqeIImshDQQ0FPhmpgNcPuYpYmFEmjg348J6oJ9gXHvLex9HA4uxgzBD0jm9Zs1nPVQ VNjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=SAZUjTSnqutzFpn4J14th7/yqenF++TzjbaKwE79RLw=; fh=XWfcfcroRSZieowWqIIHavkrtv5VeGEqe210//Xen5U=; b=nVa9wUBccjZfW5j9ItdbBKX7wT4yih5iDz6UaI3QqmuuXlhkGGKgm1IgMMSfbbTKle vtYPo/IcYNNxEGr/Azwee5cip/y0DeZXbm9zZ7fPhteagPEEk91Sv0ILatPVmUvyf+us DXD/9vSJxpSvlx4uEvCSv3YGNHFAsvKPR2gujK394PaFLSOUmBEkjpgzSpyRMIrSc6Lq dR0adyDZ1FmUFqmULsVT7lVyrLitC19bQVFO3zl4vlFNx4B18FfqxWlNELuhvr7MmN6p UhvaZQTaY/3Wm+rpdXJ2d+yjVA7fTXsDVvVIiUs+GXbvQIXSznPxOkm6OyqWa7Aj7vzC iLzA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d4-20020a056a0010c400b00666892d1ec3si4728750pfu.360.2023.07.19.19.34.16; Wed, 19 Jul 2023 19:34:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229529AbjGTBvv (ORCPT <rfc822;assdfgzxcv4@gmail.com> + 99 others); Wed, 19 Jul 2023 21:51:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229521AbjGTBvu (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 19 Jul 2023 21:51:50 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 043D61FDF; Wed, 19 Jul 2023 18:51:49 -0700 (PDT) Received: from dggpeml100024.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4R5wZM6hc7zNmVl; Thu, 20 Jul 2023 09:48:27 +0800 (CST) Received: from hulk-vt.huawei.com (10.67.174.26) by dggpeml100024.china.huawei.com (7.185.36.115) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Thu, 20 Jul 2023 09:51:47 +0800 From: Xiu Jianfeng <xiujianfeng@huawei.com> To: <paul@paul-moore.com>, <eparis@redhat.com> CC: <audit@vger.kernel.org>, <linux-kernel@vger.kernel.org> Subject: [PATCH -next] audit: Include securiry.h unconditionally Date: Thu, 20 Jul 2023 01:50:32 +0000 Message-ID: <20230720015032.45960-1-xiujianfeng@huawei.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.67.174.26] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpeml100024.china.huawei.com (7.185.36.115) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771905188010244307 X-GMAIL-MSGID: 1771905188010244307 |
Series |
[-next] audit: Include securiry.h unconditionally
|
|
Commit Message
Xiu Jianfeng
July 20, 2023, 1:50 a.m. UTC
The ifdef-else logic is already in the header file, so include it
unconditionally, no functional changes here.
Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
---
kernel/audit.c | 2 --
1 file changed, 2 deletions(-)
Comments
On Jul 19, 2023 Xiu Jianfeng <xiujianfeng@huawei.com> wrote: > > The ifdef-else logic is already in the header file, so include it > unconditionally, no functional changes here. > > Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com> > --- > kernel/audit.c | 2 -- > 1 file changed, 2 deletions(-) Merged with the spelling error in the subject line fixed, thanks. -- paul-moore.com
diff --git a/kernel/audit.c b/kernel/audit.c index 9bc0b0301198..45b2fb1e45af 100644 --- a/kernel/audit.c +++ b/kernel/audit.c @@ -53,9 +53,7 @@ #include <net/sock.h> #include <net/netlink.h> #include <linux/skbuff.h> -#ifdef CONFIG_SECURITY #include <linux/security.h> -#endif #include <linux/freezer.h> #include <linux/pid_namespace.h> #include <net/netns/generic.h>