From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qv1-f53.google.com (mail-qv1-f53.google.com [209.85.219.53]) (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 888F53A6EEE for ; Tue, 7 Jul 2026 19:10:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783451449; cv=none; b=s3l2/gfSUYZOaVyaAS/9Iy3vyUzMaEF9asv+l4+eQkjDbPHHC+vsgNjy0Yfe9gFiqzvOjiw0/c5fSbjI7WdyRMiLKohc2xlPPscHbddByI/EFNkkpcDkgEA2o76tOFSmWaOSyrL+fHFp6/aooAUoBgGI+YIziVFa5VDHHyL1n0U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783451449; c=relaxed/simple; bh=9e9qjg8FjE4LIAcZ8mjOkqL/o0d4wmhbdAuKcnOX1/Y=; h=Date:Message-ID:MIME-Version:Content-Type:From:To:Cc:Subject: References:In-Reply-To; b=IOh7P05gqiCgRCLUhWknIhh5jSapbYeL60l1lYMjLqi1zDHNbDOFmQX9mXH7XKQMKRRZCOiPBoG+DDDcm9uEYNh00jsCXK3WKEX04Fzv0xb82VL8FkKjmVtYZbymf1kEHeLXJU1+YbKazHJuui+89XSbv2ZiWuTLN/OPn1egYPg= 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=EQxitSu4; arc=none smtp.client-ip=209.85.219.53 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="EQxitSu4" Received: by mail-qv1-f53.google.com with SMTP id 6a1803df08f44-8f1a8e914a9so32495066d6.1 for ; Tue, 07 Jul 2026 12:10:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore.com; s=google; t=1783451447; x=1784056247; 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=mBSYWCX0Xl0nrH7KuyJZql2xgbujaGVevFK59n9qnxQ=; b=EQxitSu4R1D7XwJ2ijwuyXMLO4lNwZa6kMMfoi5eV9WaDx4ELjcZFnB0IG3ZfdWmnM GHdtwcsAGgMxpJOuYVy+ItS8Y3lyy6i+FicFIcqMaLIuMB/Y7rlk632Y0g8hz64N8S26 S+02vS/e3//ux0QMLNxr9aKJIz/GTMWuNI6hXxA5VlDTvzYZbux5KicDEBNTM0FTSdZO aNA5sbY4X/jJWDZ+z4Ep7i7Xx0IUj+IXR3VMYr5r/xPqqF+ET1O0Kby6+yqZ4CJ2P/jC J14ra/5leABskcW+AEF3o7Laey8f6Pa8msJQQ0yGgY/+XSN1tSUhqs5nsBipfB/5Mso4 BjaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783451447; x=1784056247; 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=mBSYWCX0Xl0nrH7KuyJZql2xgbujaGVevFK59n9qnxQ=; b=OQNy2Nd+Y7j10uWknzA9U/X31D6ciFAMjAJ5o5TkQruuU40bNhnIzDK1HzJkJ3aONs RfDwuwZo4NmFzUSLlGAgFx7YGThEELfhYvpHRGsP6rA64yd2r+b/Zpzg7j2lnjTr0X5v h9442SMMg0M8uwUeOFL4TbNaykrVTixkTu0pG+amygALVwx/W1Qgst01QQOo2/BjP77y eY3zWx61benaCWAPPdr/s5hayP7+8yjyxrSLqXN5Cu8b39GXtI5+r5Y3Cwlx4rLrHlDD XWg5fdXCtqWKwGcQpfhqezE04tfDFYURZFlxxa3AgkPLVTdxNtzbAwqdVLBjnzyWdA0w 2moA== X-Forwarded-Encrypted: i=1; AHgh+RpptwkPn7glE5Vo7SbqPzReO1wd9/W6W/D5PrCS4hSa4rMVkqVx28a5eBc5dg5buoOZPCZopWHKlpG5ji0=@vger.kernel.org X-Gm-Message-State: AOJu0YyTDj+kE3kyWNVyN3OUbAux0jIDjs1muagMd/fDgqXlxgLaHPmY KjhVq7gLowicu8baLf5YK3RJrIVKwEF0EV3JbjwW0hGRpSymey0xEJAROva+bSlXEw== X-Gm-Gg: AfdE7ckQ7k8kXZ9gQxj/vJMhgHjAPI/A4TlKFG3c5pdM0YsFk1Nkez7/6XmpMG8lNNT BZn9d5lplIhHAQSwb2QiYnAez/xS3jLdPzbwjuY4BqbbUJomKW0IdDGGQhSpZOMT0eDcpHrQDXk UKE9sEausOTQQTIaiE8PSlYpj/XMwML6qaIBIs7D+dy6yz94xeU+XpVAF8RcA+5WixsdtZjxGqL EA3zY+yoX/CFEqj12Hl/38LoeAjtEYkBBl/fg5D4OV7zcvwplqGw6Zrpph2zIUDDZG33UFYAXuP ORugaVhLFlvAZHJhjYm0O8W9aJb/7A12tFk3YyVUAvwy7GucGve+BYzaZ8/Kg/3K3f3dGbvR0nN K+mwCqRBKK6XZFUGzCXC/bn31WG2pdrcxepiJl/s/ZhIs+C0AHVahbsNBnVcIGI3llZa9TPT4OO MbqUzPvvf5LuedMieQHTrmaP4i0UBx/Qsv0uv4bLjJNFRCIO4eDLMM0z6iEknYuKF9inxs X-Received: by 2002:ad4:5d4a:0:b0:8eb:24e8:8d28 with SMTP id 6a1803df08f44-8fcb4904bd7mr89056376d6.46.1783451447567; Tue, 07 Jul 2026 12:10:47 -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 6a1803df08f44-8f46f30c04fsm178016696d6.22.2026.07.07.12.10.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jul 2026 12:10:46 -0700 (PDT) Date: Tue, 07 Jul 2026 15:10:45 -0400 Message-ID: <054bead629039656c730231393b4418f@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:20260707_1504/pstg-lib:20260707_1258/pstg-pwork:20260707_1504 From: Paul Moore To: Alice Ryhl , Serge Hallyn , Jonathan Corbet , Greg Kroah-Hartman , Shuah Khan , Alex Shi , Yanteng Si , Dongliang Mu Cc: Miguel Ojeda , Boqun Feng , Gary Guo , "=?utf-8?q?Bj=C3=B6rn_Roy_Baron?=" , Benno Lossin , Andreas Hindborg , Trevor Gross , Danilo Krummrich , Jann Horn , linux-security-module@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, Alice Ryhl Subject: Re: [PATCH v5 2/2] cred: delete task_euid() References: <20260703-remove-task-euid-v5-2-c90c7e2ddf54@google.com> In-Reply-To: <20260703-remove-task-euid-v5-2-c90c7e2ddf54@google.com> On Jul 3, 2026 Alice Ryhl wrote: > > task_euid() is a very weird operation. You can see how weird it is by > grepping for task_euid() - binder is its only user. task_euid() obtains > the objective effective UID - it looks at the credentials of the task > for purposes of acting on it as an object, but then accesses the > effective UID (which the credentials.7 man page describes as "[...] used > by the kernel to determine the permissions that the process will have > when accessing shared resources [...]"). > > Since usage in Binder has now been removed, get rid of the resulting > dead code. > > Changes to the zh_CN translation was carried out with the help of > Gemini and Google Translate, and since adjusted as per Alex Shi's > feedback. > > Suggested-by: Jann Horn > Reviewed-by: Gary Guo > Signed-off-by: Alice Ryhl > --- > Documentation/security/credentials.rst | 6 ++---- > Documentation/translations/zh_CN/security/credentials.rst | 4 +--- > include/linux/cred.h | 1 - > rust/helpers/task.c | 5 ----- > rust/kernel/task.rs | 10 ---------- > 5 files changed, 3 insertions(+), 23 deletions(-) Merged into lsm/dev, thanks! -- paul-moore.com