From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f174.google.com (mail-qk1-f174.google.com [209.85.222.174]) (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 144E9393DD3 for ; Mon, 24 Aug 2026 22:07:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787609229; cv=none; b=ODcHkmT3u21uM6ms7YJtrB/ge3n7rpM8uvD2PEv6q8esrOxAx8zN1TaiHdXnL1chOQWfh+BVqf8/Xjx0/rHoF1IZLsan4ByGptTijGqfLuYl3xbEIlWpNP+7B7Ou40qHXNL61beR+JtdQi1sQwDCA85EFC2+YTe47UC4cy+V+eE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787609229; c=relaxed/simple; bh=FZJtR0w4GJCui3/VxgKSPznCm8GNF9lnWrpVODY0xqI=; h=Date:Message-ID:MIME-Version:Content-Type:From:To:Cc:Subject: References:In-Reply-To; b=Go/IX0FFGJm42UKsGx+AUwu+3FixwBtguEPaM1xoBg5doLbTB920lFo4WMwjI6xASV0zO8FNyvfbbVGLYYqdEHLG9g/WFc7iXXdkyNsJ8wl8LzktKrpM53ewtGsFWcogMfwDjHpDDQ3wiuW4BZ6KvVgHfyWSZT5N2mg80VueCZ4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=paul-moore.com; spf=pass smtp.mailfrom=paul-moore.com; dkim=pass (2048-bit key) header.d=paul-moore.com header.i=@paul-moore.com header.b=DeSWxW5w; arc=none smtp.client-ip=209.85.222.174 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.b="DeSWxW5w" Received: by mail-qk1-f174.google.com with SMTP id af79cd13be357-936e8bd9caaso286887485a.2 for ; Mon, 24 Aug 2026 15:07:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore.com; s=google; t=1787609227; x=1788214027; 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=1cJ9fg/zk2IC+Zn+5lDDiE/TIZcTQB+rQho1o9bYREE=; b=DeSWxW5w1dy0jKxn7JdbNLtZIR6B8PYpnK7vvWAopWAfq6fbBEffZrnYlhhZM9jlia QZe43YIq5NWZxQvSyuTny45vuLuCJ7w0y4jvrLaIzqryBZoWKEWvwjAYtVksw4Mn6ryQ Ivd/dt1h6+QaIpVYBN9b0IU3Adb8gTQ5POIo8xgonKmVDbO/wyCnOuIzsNReayE2TaIG /2bNZcL82oFRDNEmnO3sX6knVP+RpVtjudF53Ds1gd1/4GD2+98QvFgnKHKZWwl7/sTe u8m6yHEY3YB80X6vFwN6pKITPEtkJweUBXxz5dO5OUqGkRe877QLFjBr/7PetIxtH7Vr 3WcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787609227; x=1788214027; 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=1cJ9fg/zk2IC+Zn+5lDDiE/TIZcTQB+rQho1o9bYREE=; b=E1zwlUIVBgH50tbhIrOnZU/bWaVQbnh8JRTtb0wJnjkaXf3HLOiIBy7OSz632Vi9yS xZJtIPXCbxNqCujKEjU1EOHBOQaL5YDcH89MNyHmC4Px8nEaGghgIgIXFG+u6u2XZLlZ EQJih39EheeT3HOMNsiTXmwuDlZnid0guMK02AlV/Cco3hgGUgqzn6XUN+0OxUN9UBOw VebWOweMtSExTMzGSDSSOPU7FvzYa2ZHtr1ShUJve6IZHJi5bt8FrCGsvHMxlqYXkiEO lLfAghUvepacj3juU/e9b/zU5iWLr8stxurI4pKU4BfS9vqEFXlsbRZTcvF91ZPiwC96 1gGA== X-Forwarded-Encrypted: i=1; AHgh+RoczyC7bebJwDUA1NgI7RocpHjhumDBBFN8uKJbGxN2lhqfm8FBmUY/2Zs56tYFhL8+YMSnZg==@vger.kernel.org X-Gm-Message-State: AFuF++liy7y6yKe1pOyfXixg3PzWFm+Nj8r9JV/5wcctg7Vxa5lkmnKF TsDQWbRrEXidCqa9FV8bW3QwF+dQNeGLSMKoi0NUs0vTZbiXSq5mXwIxPp+oMUCm7w== X-Gm-Gg: AR+sD11TtaX/rEZI7gW5Pletu9eGfQdpE2GoOQzxAtCKyP6ibdXk9kcnhmy+nsucm6m a6NjauOUwl0kspLQ9fFHR6px1yU4XHfM7Hba5T+Hg+1N/XgM1yG9+0EVSMgUv/F/384eMFN3tl6 uQcPt9bB514bmG2Eb8aZst/pvJfuUyyG0aiLIanZUqqLybZVdb7ygxrxay4fwTMLP7lp71VwIpn LgexoLVG0+MokGqwMZc0Zz6u4jHVW20AIrbpPl8LxcGvS1JfkR/V0ZyDm8geLDdfeI4GFazZ+90 2Xb0blqrqEPfneeiYJZi6T56N8pMhqmctjW0tzybl/Y8tfFrAqB9B7SOG+vg4mSSK2LjQ8xvncV kC2GYsevGWytlexMVM0oMlerZr6UOEoZ8EOYf9qDkbsdqQlVMyZs/aHZyuYKa25+aMcXJO52y/P AXnwnpGaJABKS/rOPcBYhP6K2+7mt8X1WxgAh6XI/9jZcg7Wp6kSUm8oHjxXqzwbN0Me0UZV8FL JxJUO5yb/pOoW+BhJxkttW7D0BQOUiA8A== X-Received: by 2002:a05:620a:1d05:b0:92a:3679:7978 with SMTP id af79cd13be357-9376f9b9b8amr279389385a.18.1787609226991; Mon, 24 Aug 2026 15:07:06 -0700 (PDT) Received: from localhost (pool-71-126-255-178.bstnma.fios.verizon.net. [71.126.255.178]) by smtp.gmail.com with ESMTPSA id af79cd13be357-93749af1f4bsm592605085a.18.2026.08.24.15.07.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Aug 2026 15:07:06 -0700 (PDT) Date: Mon, 24 Aug 2026 18:07:05 -0400 Message-ID: <65425b98ae226a9d19f89bd66a1defbe@paul-moore.com> Precedence: bulk X-Mailing-List: audit@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Mailer: pstg-pwork:20260824_1800/pstg-lib:20260824_1107/pstg-pwork:20260824_1800 From: Paul Moore To: Richard Guy Briggs , Linux-Audit Mailing List , LKML , linux-fsdevel@vger.kernel.org, Linux Kernel Audit Mailing List Cc: Eric Paris , Steve Grubb , Richard Guy Briggs , Roman Dolgikh , Ricardo Robaina Subject: Re: [PATCH v3] audit: free proctitle in context so it can be re-set by fork on exec_binprm References: In-Reply-To: On Aug 18, 2026 Richard Guy Briggs wrote: > > Between the actual process startup (fork systemd) and the executable file > replacement (exec), systemd sets a temporary file name (executable file > name in parentheses). If an auditable system call occurs at this point, > the audit context will latch the temporary process name into the cache. > This name will not change again. The patch clears proctitle into the > audit cache when the exec call is made, allowing the new process name to > be latched. > > Suggested-by: Roman Dolgikh > Link: https://github.com/user-attachments/files/20751461/fix_audit_proctitle.txt I did drop the link above from the commit as it is contained within the link below. > Link: https://github.com/linux-audit/audit-kernel/issues/170 > Signed-off-by: Richard Guy Briggs > Reviewed-by: Ricardo Robaina > Reviewed-by: Bradley Morgan > --- > Changelog: > v3: use previously assigned context > v2: simplified to call single use directly before need in audit_bimprm > --- > kernel/auditsc.c | 2 ++ > 1 file changed, 2 insertions(+) Merged into audit/dev-staging since we're currently in the middle of the merge window, this will got to audit/dev once the window closes. -- paul-moore.com