use crate::state::mac::{AppArmorState, SeLinuxState};
use crate::state::Probe;
use super::StateBuilder;
impl StateBuilder {
#[must_use]
pub fn with_selinux_state(mut self, state: SeLinuxState) -> Self {
self.mac_state.selinux = Probe::Known(state);
self
}
#[must_use]
pub fn with_apparmor_state(mut self, state: AppArmorState) -> Self {
self.mac_state.apparmor = Probe::Known(state);
self
}
}