(
&mut self,
path: &Path,
access: &str,
)
| 105 | } |
| 106 | |
| 107 | pub(crate) fn add_rule_with_access( |
| 108 | &mut self, |
| 109 | path: &Path, |
| 110 | access: &str, |
| 111 | ) -> Result<(), LandlockError> { |
| 112 | self.add_rule(path, LandlockAccess::try_from(access)?.access)?; |
| 113 | Ok(()) |
| 114 | } |
| 115 | |
| 116 | pub fn restrict_self(self) -> Result<(), LandlockError> { |
| 117 | self.ruleset |
no test coverage detected