diff options
| author | Mark Brown <broonie@kernel.org> | 2026-07-26 22:25:56 +0100 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-07-26 22:25:56 +0100 |
| commit | d2adbb1dbdd717b582e48388c1cb8384796d3aed (patch) | |
| tree | b0f1d17afd67a8fd6e01ca428f51d612567a3c8c /rust/kernel/task.rs | |
| parent | 3e55e7966d7521c46cc332809f449c5d20c129f4 (diff) | |
| parent | 0cee720cfd51402cfcb14d96cb326a36c13b823a (diff) | |
| download | linux-next-d2adbb1dbdd717b582e48388c1cb8384796d3aed.tar.gz linux-next-d2adbb1dbdd717b582e48388c1cb8384796d3aed.zip | |
Merge branch 'next' of https://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/lsm.git
Diffstat (limited to 'rust/kernel/task.rs')
| -rw-r--r-- | rust/kernel/task.rs | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/rust/kernel/task.rs b/rust/kernel/task.rs index 38273f4eedb5..c2b3457b700c 100644 --- a/rust/kernel/task.rs +++ b/rust/kernel/task.rs @@ -210,20 +210,13 @@ impl Task { unsafe { *ptr::addr_of!((*self.as_ptr()).pid) } } - /// Returns the UID of the given task. + /// Returns the objective real UID of the given task. #[inline] pub fn uid(&self) -> Kuid { // SAFETY: It's always safe to call `task_uid` on a valid task. Kuid::from_raw(unsafe { bindings::task_uid(self.as_ptr()) }) } - /// Returns the effective UID of the given task. - #[inline] - pub fn euid(&self) -> Kuid { - // SAFETY: It's always safe to call `task_euid` on a valid task. - Kuid::from_raw(unsafe { bindings::task_euid(self.as_ptr()) }) - } - /// Determines whether the given task has pending signals. #[inline] pub fn signal_pending(&self) -> bool { @@ -371,7 +364,7 @@ impl PartialEq for Task { impl Eq for Task {} impl Kuid { - /// Get the current euid. + /// Get the current subjective effective UID. #[inline] pub fn current_euid() -> Kuid { // SAFETY: Just an FFI call. |
