Struct selinux::SecurityContextList [−][src]
pub struct SecurityContextList { /* fields omitted */ }Expand description
List of security contexts.
Implementations
pub fn of_se_user(
se_user: &str,
level: Option<&str>,
reachable_from_context: Option<&SecurityContext<'_>>
) -> Result<Self>
pub fn of_se_user(
se_user: &str,
level: Option<&str>,
reachable_from_context: Option<&SecurityContext<'_>>
) -> Result<Self>
Obtain a list of contexts, for the specified SELinux user identity,
that are reachable from the specified reachable_from_context.
See: get_ordered_context_list(), get_ordered_context_list_with_level().
Return the security context at the given index, if the index is valid.
⚠️ The returned instance does NOT own the context. When the returned instance get dropped, it will NOT deallocate the provided context. Deallocation of the context will only happen when the whole list gets dropped.
Ask the user via stdin/stdout as to which context they want from
this list of contexts, and return a new context as selected by the user.
See: query_user_context().