Received: by 2002:ab2:5182:0:b0:1f4:61d5:3ad4 with SMTP id x2csp33809lqi; Fri, 5 Apr 2024 09:04:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWITilsr9rcPaUKX04cr3s/DOCBEmpblAyb1wlIu21XvykO//6sfwvHMX+2ROWeHmgsmiZQOC3k3Mo2y0tJDmuRMdQihwsBUnEZAMrurQ== X-Google-Smtp-Source: AGHT+IHdu3teoRZdJca4b7Q+Z6HE1dZ2IwRJcGIRI54xn4cZqaXejLDYXzR8KDlb2uMNNLdsEmu7 X-Received: by 2002:a17:906:fb1a:b0:a4e:9962:2dfc with SMTP id lz26-20020a170906fb1a00b00a4e99622dfcmr1357727ejb.21.1712333050191; Fri, 05 Apr 2024 09:04:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712333050; cv=pass; d=google.com; s=arc-20160816; b=Q1Q1bXG/xKCFquKsn7XDj6ELO+34u+oivJ8ZDXMLe5gyTRnHMdCEKCR8LDl/Hr5UBg 2JtEOzFVk3eEshtZK/6vnHOPz3nn4bJDNCjJ9Tuus1ajqxkP4XBSzwBiF/RUM9GutFzZ 0ndNRv8DR8ewnG45ESUoKFtmhLHOUKNI/e9s7Z4dssLgFQHauVSymPc6aAGxBO8u/DOj 5dh1Qsaik1XdYXN1GIXrPj8lxV/IAQxldq4/KMmxc73KPQHkDLv2Y3s09C3/s1GmVGao mCxNrPlSw/viCGzyBVb4ir7E+IoqYM8DJ/CYdFabC23ED95eFyEpezdueEqxuwDqjxKo T6Hw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=etbSwzYuABShtb+O6Ks2+ioR0GpoW20VrH8Vqwfvekc=; fh=SI8nzD/ECGovD6Vx3eMI1KqlmciW+HVkZ3xM6Y3HktU=; b=YNdvxwjcgaAtMLnrvzR/edB1e0Frr4vAt1/6VfWs1wRG1APJiu6M0sb4EU56kAeQbZ hBCyQve5e8IKbHbC8h8bOjiyJEA9W7bZNvczwv3WvYhxUQKbkcO5GHQUQLgbHQHrv0ZB XXD52U1caeNNKrGmD6g2E523wkohRTIbZ2XO+onpBct/uaUR1tuRkK4AvyW9Sw7thpmE M/pPKyOrgk49rRl1XKlTADob6Aekp0gJCbHBNFRUT3KsZOeqmvBK3S2n1mHZbcTqqarF fCSwl7vPZM/mujp+RFCDgqLlO/sYbvt4U8kBv07vq5gGeWf+SowRKRJgUGvuBuRBECx/ p09A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="O/LhSlfy"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-133305-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133305-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id dr2-20020a170907720200b00a474f747ee9si877224ejc.740.2024.04.05.09.04.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 09:04:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-133305-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="O/LhSlfy"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-133305-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133305-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D8ABA1F235F5 for ; Fri, 5 Apr 2024 16:04:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8B01B17106B; Fri, 5 Apr 2024 16:04:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="O/LhSlfy" Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7261F16FF30; Fri, 5 Apr 2024 16:04:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712333041; cv=none; b=aeg/i9CHK3QZ7mTykUcLMujnXeyET2e4OgF6f2EY17NpA05fSIhL6mraTqAUWACawIOiFBRjo5UBJSA8HeSDaO3flokh8mzwHVkJzNUATPj+/tDOKuXPe3YQs/V+kK0S7oH3lt1gaqVxUSyLMDJV5iPcIudev1Hj8fPmLAn9I3U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712333041; c=relaxed/simple; bh=XZEbvzuSGL/q8fWAhduZQ1/BD/N6nnhdCQ9Uj8IkLD8=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=YW7suM23lAhc1kedxbN8R/pcxPA9VWB3mS6jn7L0XEYiTc0XUPg7d9Uqw7JZRRMrPY0Q13dxjjWIyNYaTnS7v7/uifUfgqLHeJlZkYJQfoBTsusPJnVWzhj6zS/Hj7ydJtxP3zMLuFaeqOGxHJxd2cHcyzYEHTZZVSEpsyO1Itk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=O/LhSlfy; arc=none smtp.client-ip=209.85.214.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-1e244c7cbf8so20894395ad.0; Fri, 05 Apr 2024 09:04:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712333040; x=1712937840; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=etbSwzYuABShtb+O6Ks2+ioR0GpoW20VrH8Vqwfvekc=; b=O/LhSlfymIxX+AB66D074I6kkAn2sNQy4E3jLFLpx8XjatqqZm/X82DPglf9f66Z0+ cJslajx92fKH2NwCKOeBdufELmx+mW9nuEcCJM91v84JObjFkVDF5EALV7JQxhhWQQQ6 AkpQiPIF6xg5Ommq27M/uiLDJq/P2itFkapyUFmkLwFMVCB7X00LGCx+rrJ3ycDdljuu +cyEKm+9Fb0JD4vkyMxZJEow5ZZfCji2yOHI9XLrnldMBR+iANQf7tq5nhXW1XF+GUek 6JlgZl6RoMS1F6o7WN1DAtHpl/paitSoRLqdBXcdqtGO4kh6zEGojD9gSSAcs96vJZg8 SmLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712333040; x=1712937840; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=etbSwzYuABShtb+O6Ks2+ioR0GpoW20VrH8Vqwfvekc=; b=JBCUAdrslRKRJs7NKQOZgIQlO/zthOaq72dPaimaUX73wzRAQ1kTkAMuHCVGbFqWFc v+94A6Qd1qLZpmFJ0FzDps33pTqoOTCMHI2pZZdB7gvbTZRP8cSOjM4AZ6IgyrIy7PpY XhOsyg2DXz2gcabvLjrZZy6vccjoaxJH7lZBkBfOvRiI7Muj32qi89t8Mr4bdCx9YpVm j0yuSzwJ1V5oJ4O6d9k3VskyrwwNL9AdLPSw7K6hMLlMDlEC8lM1d9KCT6KbNoGQq3yV Q9/fax/v50x5e84qmwbj0bDr6AxLR00C8OTJynb+2xNVzpTU1Ui5QoA9JlNh1TXQu7RK Lvhw== X-Forwarded-Encrypted: i=1; AJvYcCUna/TLsQwdVvJ5nr+cCmLvmnLv1mr9ANPIuYHIFu3tJ1CBsX8NzP0pmw4F3RbA1JTnHfBBlp7AW1zeILqjXcU2TDxVeXWdMIHUpP1GnhcXnTnzXerbacxMwU6QxyC9zY77qhpuzg== X-Gm-Message-State: AOJu0YykM6tjRTMRuiDk6ALGpb3Nu3S1nc3xABtJcybgew5S1UfMzeTV 96hbSCKh1x2GxbGLmIzez46rM6yFQ6qBAKyhd++4hdK1cWqPTE657NCHqcdlyLzI/E83+841vMU Y6uGvZyNwLLAP4H7fsxkEtEsoRDl4TWeM X-Received: by 2002:a17:902:f813:b0:1dd:c288:899f with SMTP id ix19-20020a170902f81300b001ddc288899fmr1583349plb.18.1712333039584; Fri, 05 Apr 2024 09:03:59 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240405141907.166334-1-richard120310@gmail.com> In-Reply-To: <20240405141907.166334-1-richard120310@gmail.com> From: Stephen Smalley Date: Fri, 5 Apr 2024 12:03:48 -0400 Message-ID: Subject: Re: [PATCH] netlink: Remove the include of files doesn't exist To: I Hsin Cheng Cc: akpm@linux-foundation.org, paul@paul-moore.com, eparis@parisplace.org, selinux@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Apr 5, 2024 at 10:19=E2=80=AFAM I Hsin Cheng wrote: > > The file for /security/selinux/security.h and the file for > /include/linux/selinux_netlink.h are no long exist. However the > preprocessor still performs the inclusion of those files, these > behaviors should be removed to ensure it's bug-free. > > Signed-off-by: I Hsin Cheng NAK. You are incorrect on both counts and evidently didn't try compiling. At a purely source level, I agree it might look confusing, but the Makefile adds the security/selinux/include directory (where security.h lives) to the include path and selinux_netlink.h lives under include/uapi/linux which is auto-magically included. > --- > security/selinux/netlink.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/security/selinux/netlink.c b/security/selinux/netlink.c > index 1760aee71..8ce36abaa 100644 > --- a/security/selinux/netlink.c > +++ b/security/selinux/netlink.c > @@ -13,11 +13,9 @@ > #include > #include > #include > -#include > #include > #include > > -#include "security.h" > > static struct sock *selnl __ro_after_init; > > -- > 2.34.1 >