Add SePolicy::fscreatecon_cleanup

This commit is contained in:
Felix Krull 2019-09-01 14:44:49 +02:00 committed by Colin Walters
parent e424800f05
commit 6bc1a1d995
2 changed files with 12 additions and 0 deletions

View File

@ -43,6 +43,7 @@ mod object_name;
mod repo;
#[cfg(any(feature = "v2018_2", feature = "dox"))]
mod repo_checkout_at_options;
mod se_policy;
pub use crate::checksum::*;
#[cfg(any(feature = "v2018_6", feature = "dox"))]
pub use crate::collection_ref::*;
@ -52,6 +53,7 @@ pub use crate::object_name::*;
pub use crate::repo::*;
#[cfg(any(feature = "v2018_2", feature = "dox"))]
pub use crate::repo_checkout_at_options::*;
pub use crate::se_policy::*;
// tests
#[cfg(test)]

View File

@ -0,0 +1,10 @@
use crate::SePolicy;
use std::ptr;
impl SePolicy {
pub fn fscreatecon_cleanup() {
unsafe {
ostree_sys::ostree_sepolicy_fscreatecon_cleanup(ptr::null_mut());
}
}
}