Skip to content

Delete task_euid()

Alice Ryhl linux-doc linux-security-module lkml rust-for-linux 5 versions – Applied

Status from this message: Merged into lsm/dev, thanks!

Get series with b4
b4 am [email protected] change-id 20260219-remove-task-euid-19e4b00beebe

Versions newest first

  1. v5 Latest2 patches 3 repliesApplied
  2. v42 patches 7 repliesSuperseded
  3. v32 patches 2 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v21 patch0 repliesSuperseded
v11 patch4 repliesSuperseded

Changes in v5 from the cover letter

- Rebase on v7.2-rc1.
- Reword patch 1 commit message to take into account that usage has now
been removed from Binder.
- Pick up Gary's Reviewed-by.
- Link to v4: https://lore.kernel.org/r/[email protected]

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/2rust: task: clarify comments on task UID accessorsrust/kernel/task.rs+6 -32 replies
2/2cred: delete task_euid()Documentation/security/credentials.rst Documentation/translations/zh_CN/security/credentials.rst include/linux/cred.h +2 more+3 -231 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchGary Guo
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH v5 0/2] Delete task_euid()

The task_euid() method is a very weird method, and Binder was the only user. As of commit 65b672152289 ("binder: use current_euid() for transaction sender identity") Binder doesn't use task_euid() anymore, so we can delete this method.

My suggestion would be to merge this through the LSM tree.

---
Changes in v5:
- Rebase on v7.2-rc1.
- Reword patch 1 commit message to take into account that usage has now
been removed from Binder.
- Pick up Gary's Reviewed-by.
- Link to v4: https://lore.kernel.org/r/[email protected]

Changes in v4:
- Reword 'euid' -> 'effective UID' in 'Kuid::current_euid()' docs.
- Link to v3: https://lore.kernel.org/r/[email protected]

Changes in v3:
- Include 'task' clarification commit in series.
- Rebase and resend.
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- Update translation as per Alex Shi.
- Pick up Reviewed-by Gary.
- Update commit title to use cred: prefix.
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Alice Ryhl (1):
cred: delete task_euid()

Jann Horn (1):
rust: task: clarify comments on task UID accessors

 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                                       | 11 ++---------
 5 files changed, 5 insertions(+), 22 deletions(-)

---
base-commit: dc59e4fea9d83f03bad6bddf3fa2e52491777482
change-id: 20260219-remove-task-euid-19e4b00beebe

Best regards,

Signature · 1 line
Alice Ryhl <[email protected]>