From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.222.171 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796441353; b=wf42bDLrIi2+xt7AGxMpjUiOJNurGRLmXR7LtnKnh+qHfeZip/YILoVSE+sYwQ7+LC76 sl31pykR99Y6x2td3k1ywUEVcnyqH2zr9X/tFxqAJhjWDgHShA6Hfa82GMdj0Nf7fl+qg zoLoMZep8UgKHtx7ASCJEmP8y+0RdCargftpwYXk8dfUU4ytX30xiDCaC5A3zn5JebELY ddbDZJk8x6uF4mg0C8I97+zar8N7EuydvKsQepaeYi/6e2ksw+85tlynRFE/9siUCObgP y6Mxc3FPz43w09awt1saCysKZcySyJKp8fTZsRN9ndbFoakUWyhDXVXboMw2ecgeqqQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796441353; 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=zSWp7llOebFDOx+tReso+bnQDUw/+GFfgkxNCDpSuEo=; b=1U+4F7n12m/kZ9emjoFCvXfh3kYzsjrx9CAI8+A/b/j4Hh1k26pXltvPnbSquYiTgYhV UHJKAWsnjeK7GtVFOtByrnItWF0AFkwPhWX9Cm0lkcxgIBJMTvQM5nbR2q0CPBFvoMBCU H4PQIlQRdvEpOI7/VqApERGnGXv0AmrTpx+YavmZxFuYj6UG4QfKci18Xw3t5jmwfhG6U /PX5TtFUJLVxh1jaQByvfjNVwnUMRIsMqPjIJcXOSRhcD18D+GlpIrdkZ4A+W0njFjcd6 X3Dj1a+KJCcw1OEPLoE6j+rtsKKvhpEJIQ+k1XKvLPXX4wPGIhHKIyhc2KT5DgIl/Yg== 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="L8H2G/Mh"; arc=none smtp.remote-ip=209.85.222.171 Received: from mail-qk1-f171.google.com (mail-qk1-f171.google.com [209.85.222.171]) (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 19E7B606A32F for ; Sat, 5 Dec 2026 03:29:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 19E7B606A32F 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=L8H2G/Mh Received: by mail-qk1-f171.google.com with SMTP id af79cd13be357-94961d90b79so155191885a.3 for ; Fri, 04 Dec 2026 19:29:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore.com; s=google; t=1796441352; x=1797046152; 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=zSWp7llOebFDOx+tReso+bnQDUw/+GFfgkxNCDpSuEo=; b=L8H2G/MhrjATc5hl4d+fQUMIpSvkpA1LOHmwIuKOPvWJS6vdnQbSBxjSMxUcMJ0O6+ xshUBTaw7w2+e2sTplTzb2fEWHo0uOq8QhJgUgNCaOBIBlKhIZrb9rqwM7MdQY0UPkY5 BXRJFGqmy+eA4kgsJAbvGRRUw3m5kdIDCT+NLB2QhR4/Yi3PLrcw6h9PC2HHFZxu6nnY WWeHC9OJZbWhHfBOJxjylViGVtVeuhQ5J2eCpamdAg9LHV0khbhYSkebTEoX0/rjlNPN uJfRv3Kcr1zEZN7wtaSpCk6O2w7vZvqG5VhINCkwe0f4o+jfLeBZlBI8y30hnTrzFjNv WxCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796441352; x=1797046152; 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=zSWp7llOebFDOx+tReso+bnQDUw/+GFfgkxNCDpSuEo=; b=h3MczUAjOqtrwhE3mRfE9VR4o3BCqSbgrPZKAsBre+ZHg5XNLLLCJckVozJOn8BgJS o8PD47GkSsJKEKrnxBpR6zNbu/achdqd1RXIpPtRblidUDyikTSxhgjstrHj+FTlp6If XOAqRLF6NMRbHRkGKtrGEG5/JIU/L+Zt0ueiCHQRxCNPHykRuFjYN0wRWHAgAKtX1xCj DvqP+tfUKFrx3jwHrs3grUFdUx4K2IdTOvSj/Os6CI9+ez2wofm7vnpCuzUEe24FOkkR XLLSaOpHqoeMC8fbiMYNApv61w5Sjhgz1wRqMQ8GFR20ahXKfiIj4kElhOnZyR6EBvAd H3zg== X-Forwarded-Encrypted: i=1; AL+hErELKgazwTygF0eQqfuJx8VWnRca2MCIU7wibhrJblSeO80UE0mllWEMJn/O9o6VM6WAeJ/Yf90f@vger.kernel.org X-Gm-Message-State: APuU4Z9x/7WwJAUhstEQpQPPv6GzWAClXA/xe/6jBmv+Tk8OomHMTg7V t9TeAXmQVtX380TjuICZ+3YiegTngZLpxmbwOcMJu+EzoVRye1cuvpRNsO3lGl7mdQ== X-Gm-Gg: AZFdTZf0IDKD2jApYk7iuOGTTpLd3ZzSDjaZ0y/eB9LyQNsWoDZRC10nxzJ3u3HjRIh xe+g6oXYtkmKmAK1sN6DYng2INdugVZlHjOUNmAcq86AfhykFWm7ZWfPKeOZ5/TSzw/vGgPUuv9 Al4MJ4ksAo5vS9ZzKEvxH+qB56XZ3RWwFPmbkFGRAEnuPc4YBwBEn7db9ZtkRx6m61tWnirl6v7 1jqDio/xWZZO9T8F+sbzrDMzU2iGvzL6wSy4wmd1BnbTpc4XuWTXEfexw96QfLgchqbebwF7Xlh 7kWlZoxAULkn2kx+luVgiX5bkwXywCMm+m/iwUpcOcVp8nlQ8HU6ACwpPa/q7kUosjqlw/1MQsN 74d+Z0asrKmO+LM9XESmsKeW/6D5x04vO63SKmaMjGDIpTwCVYyt/vWkHNbu/E5Nb8m6SRAosm1 I7LSmIscCDj4WRb+XuRnokn75c8RTmrdeZREENX9k0P1TTU0WxA2kDjcZQIGCoI2SLDt6q2M6iU O6Ql0CBSuvsJERUdQBj1wbwWtUoEhEJyp5PsSgJ6fZGo4y7J2DsJd81bBA5m0BRy9BZRCk9aWRg 6c4aHAwL4W6Hl2nli5AfaeZV297V0E1+gl04GCSXJa6V5f8knWurxKDneopUjUFlx4dXyk5eb9q nfY9bESTss25c6+/kAFN28wy6Bw4HUA== X-Received: by 2002:a05:620a:2993:b0:949:5cb8:6be5 with SMTP id af79cd13be357-94a82f4738amr703624785a.76.1796441352034; Fri, 04 Dec 2026 19:29:12 -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-94a7f479845sm388121785a.8.2026.12.04.19.29.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2026 19:29:11 -0800 (PST) Date: Fri, 04 Dec 2026 22:29:10 -0500 Message-ID: <8b6563a7742e928cfb7765d07b63ebb9@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 25/32] selinux: share implementation of relabel and member transactions References: <20260928174643.2458710-24-cgoettsche@seltendoof.de> In-Reply-To: <20260928174643.2458710-24-cgoettsche@seltendoof.de> On Sep 28, 2026 =?UTF-8?q?Christian=20G=C3=B6ttsche?= wrote: > > sel_write_relabel() and sel_write_member() are identical except for > the permission checked and the security server function computing the > new SID. Implement both via a common helper taking these two as > arguments. > > Assisted-by: Claude:claude-opus-5-5 > Signed-off-by: Christian Göttsche > Acked-by: Stephen Smalley > --- > security/selinux/selinuxfs.c | 60 +++++++++--------------------------- > 1 file changed, 14 insertions(+), 46 deletions(-) Merged into selinux/dev, thanks! -- paul-moore.com