FROMLIST: rust: cred: add Rust abstraction for `struct cred`
Add a wrapper around `struct cred` called `Credential`, and provide functionality to get the `Credential` associated with a `File`. Rust Binder must check the credentials of processes when they attempt to perform various operations, and these checks usually take a `&Credential` as parameter. The security_binder_set_context_mgr function would be one example. This patch is necessary to access these security_* methods from Rust. Signed-off-by:Wedson Almeida Filho <wedsonaf@gmail.com> Co-developed-by:
Alice Ryhl <aliceryhl@google.com> Reviewed-by:
Trevor Gross <tmgross@umich.edu> Reviewed-by:
Benno Lossin <benno.lossin@proton.me> Reviewed-by:
Martin Rodriguez Reboredo <yakoyoku@gmail.com> Signed-off-by:
Alice Ryhl <aliceryhl@google.com> Bug: 324206405 Link: https://lore.kernel.org/all/20240209-alice-file-v5-4-a37886783025@google.com/ Change-Id: I34a92590a944b35cc672a6550798f53fe1881e37 Signed-off-by:
Alice Ryhl <aliceryhl@google.com>
Loading
Please sign in to comment