From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f179.google.com (mail-qk1-f179.google.com [209.85.222.179]) (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 11DA8391E44 for ; Mon, 24 Aug 2026 22:07:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787609229; cv=none; b=ZvzXsBuQq6Q0PdqPG4zEoLiH1E71zLv1PkYNpkTlzDeCkckdDoMys9nr85I8QcB7wn0BxfBs6MVEqcDir3F/QxdCl7rkLsYhhIy5RelYGVvYEGlGqP8V0pqlkzToLQZPJHlWhmdi4h28H1Hv6KE/2ZUr8gnMpTcMOyettFCff8E= 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.179 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-f179.google.com with SMTP id af79cd13be357-92e85499ffbso315151285a.0 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=Sm5UZHvpR7gOXejZJzuvmtFAwPIQcD0opcBxM93vvLpU0DvnsNLkMnUHd3xRGulgec +AWhJFQRpakMQwnWHcJXWKSSJJvIgRAKJZZhcsZ7l7vd9AIh6/0A/a+JksbHm9m7W5cg S8HmSxaCvJwg3V/0qi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357-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: linux-kernel@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