From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.222.180 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796441359; b=1aW51NhmvwbiUHIA/rs0rSh4RL1OaF1uCD6wbRi8NaE7lyozOEveTkvEORbr1mfnT5qV J9Z0tbSEiei5/Y0q0SPF2XdgmtfeRtQVbhkaHgCW+lXS7H1MhfvPFEuxi2mLDkfv9ivUp 2gqW3e/LHR4hBO4lm7fLSYBKCuDQBa0u1158V7v3w01gwKLEj48VxHJrz2uNHabP9sk/Z WApNzC7ibT2vbgRN1h8XhsJiB/dfgjvJNELrfF/wMg+KFZ/NjAR0BjDcgQh4PEOo+jseT EfARbU6wObuM8fBzDoydUyVNyMAJsETV/gkpXp4XMoD/VZ+pzXts/ZTdybgqZo6qemQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796441359; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding: X-Mailer:From:To:Cc:Subject:References:In-Reply-To; bh=fGfKafvzYw6LvMW41lFPmQrGIGes4Zl2zDRLjqsu3vo=; b=PAgjCZLqNQDGVDzro86WYN9XGADGI+qFVmHrliJxcvUOfST1Wif7cXF7WvWA/Sd70Yt/ vD/d56LiOK8Q+gbTs3u3Hd9zhA9Tz6FP36CHxFYbqN7dxvjbePXLSeXq26MVQKbsnUs/2 PtZ1iFcbRYoKtZWZPyE065s3Pqlv7wioVpgJyB1WJ/IyjQW7Ei20CktjKOnPojG7vee1I POd8PNg+uDlX5VtJR/fptM++ZUX606iujshINl1AI6Xk7ywV2wcfkmHd+mUgprgEGrmMQ EMZktANpxYZ3gnRKcorhl35vhwuxjxbD2kz5T11eVtKZJ0qAuAiDxtxDAVzA8iZxFIA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=paul-moore.com; spf=pass smtp.mailfrom=paul-moore.com; dkim=pass header.d=paul-moore.com header.i=@paul-moore.com header.a=rsa-sha256 header.s=google header.b=JGJ9EFp+; arc=none smtp.remote-ip=209.85.222.180 Received: from mail-qk1-f180.google.com (mail-qk1-f180.google.com [209.85.222.180]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CA99E606A684 for ; Sat, 5 Dec 2026 03:29:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org CA99E606A684 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=paul-moore.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=paul-moore.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=paul-moore.com header.i=@paul-moore.com header.a=rsa-sha256 header.s=google header.b=JGJ9EFp+ Received: by mail-qk1-f180.google.com with SMTP id af79cd13be357-94965745d92so159740485a.2 for ; Fri, 04 Dec 2026 19:29:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore.com; s=google; t=1796441358; x=1797046158; darn=vger.kernel.org; h=in-reply-to:references:subject:cc:to:from:content-transfer-encoding :content-type:mime-version:message-id:date:from:to:cc:subject:date :message-id:reply-to:content-type; bh=fGfKafvzYw6LvMW41lFPmQrGIGes4Zl2zDRLjqsu3vo=; b=JGJ9EFp+dYHZhW9z9w9+vGlB+bfnSr9whiHTf8UXi/17fmw25Gw1qIx+nD5wVP5Pnq 1S28/7I/ESUHi5XzrmLA6asxdMgJB8rYXTH0acyyKhlcBW987hVeC6yurFl3Rb8aZIEg xJNtN+GKACIxfFA4pOQyrs6CdShExtbI7J/eD/qUDHU3itVEF5qq7hEn8Sr32bu5JGRo ID9sq89vATM8nVD/0J5j0cq6gtS3r/FTzef0rfeBGERwwi1aROSVEdt9KL3w/re9Q2Pu L7JFTlF/koabt7xGeHNhA+DP1JOnIIbws+5alXdSFXKnPmRPKOHz9CfERXNBCYEAkKkf Lokg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796441358; x=1797046158; h=in-reply-to:references:subject:cc:to:from:content-transfer-encoding :content-type:mime-version:message-id:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=fGfKafvzYw6LvMW41lFPmQrGIGes4Zl2zDRLjqsu3vo=; b=hZTXJSekPhrIFj+R/4/Ri2L0TPJz+aDW4G12Y289ohVRuLUjXoM02k4EJtmc1Y6axP oW0i/DSNjIZ/siJWhu/1cB07ubkCM3qnRkV1KXpvSrP/x/uTgjAv38tkcG7qJYzpzpfM WtrUHag+ekzQxIamCFPcn5TPvDJZ8JD1Nr9QRq4M7z9kdX4wOhYk56zIkhEG0uRS3NU1 s5tl8tuSH3nyXgXx+NIdaIY49pYkybka7c+TaWQOu1+nfvZ4lhitNZZp4bvL3WL/GzOg avXPjOBg7m78rE3XSh/L0OyvJFMndVfinCmRsFIFKUVTUcxWxsqoNb7iFe5enh4REwif bGJg== X-Forwarded-Encrypted: i=1; AL+hErHrSyRQwmK8nyd3/5b8rkmbZ9oTqc3R1Cmxrvk9UIUT93ErlmT7lyq5fSvq81rLcw3UeO+pAdi+@vger.kernel.org X-Gm-Message-State: APuU4Z8vL+L/9FvBtBKYczicg+QPi0WzP9TauCO+ZQp3/zu/kgaRf1wd z/1FZkyRiaFa7wzG/qvgsLCh5cKyvs6T9TyugkSM2lb1eZyRgEQg+advD5aUxIlnxg== X-Gm-Gg: AZFdTZcQxHjakyuzyipVtjFoHGvoPUDYFqqaujqQurBnKZKU33LHONCya7SuTxHIA9C k5Zkor1EDmP2S5jLbxYxi+zyysvP2zgjMJqwYfHtuqLePp1BorxuAQ55JwqkDbhafuHgAtnF+dv vxb76cYu2q4Ci3WVfbA9/mjcoqZDAzrVFFraqMrx+cCugeX1629eFeLXpUZqFGXV7FeKjfm/QgB oIRVpq1x+RhdNcWMKCuR46HuyAWKpXuh4Z6dFPyQqxDSAhJm4mplMyheOxbfUX8x4QyhIbA9+pS HmVt9UmDAug7ZFFb4H8ZByI2sFwnU896fWo0/M6REW2T9ngQIPnq9LjanIETCYTHr8goxBi3DnW vEj1NTFDrXItw8rmBOMcfBCNgxe1spfgBLtQjCAkPtHboGgzycHxWVPCixGX6lnIcGHPwdyzl2h DK3Sm+yIh/zPl+9SqOaHR6djsFLF79VUQ6QJaYnZQXSU3Va7H06p/u5RtVgBpJQLtLQNxQOs8Rt 8t9WH9fa1svdaHVQSsG3kmL+9cxaTIe9qRp4D3flyo4MuRoGr4TrsZvPTKAd1OPgXTCT3SF7LH4 KWVDod3COqOJMxZh6jwx5aZId1qbaoEluo5G5+AjNiXkgj8+dv3tJuSJIQj/1RdFQ+ZyKaXimV3 XRtop60PpdimukrHR+bYi1wnW7c50AyQwfz87O9WIAlOJT/0Cd/N3 X-Received: by 2002:a05:620a:448e:b0:93e:e376:9b1d with SMTP id af79cd13be357-94a826928c8mr628102085a.9.1796441357843; Fri, 04 Dec 2026 19:29:17 -0800 (PST) Received: from localhost (pool-71-126-255-178.bstnma.fios.verizon.net. [71.126.255.178]) by smtp.gmail.com with ESMTPSA id af79cd13be357-94a7f4c96b8sm388266585a.25.2026.12.04.19.29.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2026 19:29:17 -0800 (PST) Date: Fri, 04 Dec 2026 22:29:16 -0500 Message-ID: <02ba5692d4c2a2524f950794cb282d02@paul-moore.com> X-Mailing-List: selinux@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Mailer: pstg-pwork:20261204_1745/pstg-lib:20261204_2121/pstg-pwork:20261204_1745 From: Paul Moore To: =?UTF-8?q?Christian=20G=C3=B6ttsche?= , selinux@vger.kernel.org Cc: Stephen Smalley , Ondrej Mosnacek , =?UTF-8?q?Christian=20G=C3=B6ttsche?= Subject: Re: [PATCH RFC 28/32] selinux: pass inode number by value to sel_make_dir() References: <20260928174643.2458710-27-cgoettsche@seltendoof.de> In-Reply-To: <20260928174643.2458710-27-cgoettsche@seltendoof.de> On Sep 28, 2026 =?UTF-8?q?Christian=20G=C3=B6ttsche?= wrote: > > sel_make_dir() and sel_make_swapover_dir() take a pointer to an inode > number counter which they increment and assign. This forces > sel_make_policy_nodes(), which wants to reuse the inode numbers of the > existing booleans and class directories, to set a temporary counter to > the desired value minus one. > > Pass the inode number to assign instead and let callers increment > their counters themselves. All directories keep their inode numbers. > > Assisted-by: Claude:claude-opus-5-5 > Signed-off-by: Christian Göttsche > Acked-by: Stephen Smalley > --- > security/selinux/selinuxfs.c | 40 ++++++++++++++++++------------------ > 1 file changed, 20 insertions(+), 20 deletions(-) Merged into selinux/dev, thanks! -- paul-moore.com