Struct selinux::SecurityContextList[][src]

pub struct SecurityContextList { /* fields omitted */ }
Expand description

List of security contexts.

Implementations

Return the managed raw pointer to c_char.

Return the managed raw pointer to c_char.

Number of security contexts present in this list.

Return true if this list is empty.

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().

Trait Implementations

Formats the value using the given formatter. Read more

See: freeconary().

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.