Mask is not required and will be generated by the system if it is required and missing

This commit is contained in:
Fabian Stamm
2024-08-18 12:22:08 +02:00
parent dfad5cc74c
commit 82b96cbb88
3 changed files with 2 additions and 7 deletions

View File

@ -245,11 +245,6 @@ impl PosixACL {
return Err(anyhow!("Other entry is required"));
}
let has_mask = self.entries.iter().any(|x| matches!(x.0, Qualifier::Mask));
if !has_mask {
return Err(anyhow!("Mask entry is required"));
}
for acl_entry in &self.entries {
let mut entry = null_mut();
check_return(