pub struct TaskAttrs {
pub current_sid: SecurityId,
pub exec_sid: Option<SecurityId>,
pub fscreate_sid: Option<SecurityId>,
pub keycreate_sid: Option<SecurityId>,
pub previous_sid: SecurityId,
pub sockcreate_sid: Option<SecurityId>,
pub internal_operation: bool,
}Expand description
The SELinux security structure for ThreadGroup.
Fields§
§current_sid: SecurityIdCurrent SID for the task.
exec_sid: Option<SecurityId>SID for the task upon the next execve call.
fscreate_sid: Option<SecurityId>SID for files created by the task.
keycreate_sid: Option<SecurityId>SID for kernel-managed keys created by the task.
previous_sid: SecurityIdSID prior to the last execve.
sockcreate_sid: Option<SecurityId>SID for sockets created by the task.
internal_operation: boolIndicates that the task with these credentials is performing an internal operation where access checks must be skipped.
Implementations§
Source§impl TaskAttrs
impl TaskAttrs
Sourcepub fn for_kernel() -> TaskAttrs
pub fn for_kernel() -> TaskAttrs
Returns initial state for kernel tasks.
Sourcepub fn for_selinux_disabled() -> TaskAttrs
pub fn for_selinux_disabled() -> TaskAttrs
Returns placeholder state for use when SELinux is not enabled.
Sourcepub fn for_sid(sid: SecurityId) -> TaskAttrs
pub fn for_sid(sid: SecurityId) -> TaskAttrs
Used to create initial state for tasks with a specified SID.
Trait Implementations§
impl StructuralPartialEq for TaskAttrs
Auto Trait Implementations§
impl Freeze for TaskAttrs
impl RefUnwindSafe for TaskAttrs
impl Send for TaskAttrs
impl Sync for TaskAttrs
impl Unpin for TaskAttrs
impl UnsafeUnpin for TaskAttrs
impl UnwindSafe for TaskAttrs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more