Add SePolicy::fscreatecon_cleanup
This commit is contained in:
parent
e424800f05
commit
6bc1a1d995
|
|
@ -43,6 +43,7 @@ mod object_name;
|
||||||
mod repo;
|
mod repo;
|
||||||
#[cfg(any(feature = "v2018_2", feature = "dox"))]
|
#[cfg(any(feature = "v2018_2", feature = "dox"))]
|
||||||
mod repo_checkout_at_options;
|
mod repo_checkout_at_options;
|
||||||
|
mod se_policy;
|
||||||
pub use crate::checksum::*;
|
pub use crate::checksum::*;
|
||||||
#[cfg(any(feature = "v2018_6", feature = "dox"))]
|
#[cfg(any(feature = "v2018_6", feature = "dox"))]
|
||||||
pub use crate::collection_ref::*;
|
pub use crate::collection_ref::*;
|
||||||
|
|
@ -52,6 +53,7 @@ pub use crate::object_name::*;
|
||||||
pub use crate::repo::*;
|
pub use crate::repo::*;
|
||||||
#[cfg(any(feature = "v2018_2", feature = "dox"))]
|
#[cfg(any(feature = "v2018_2", feature = "dox"))]
|
||||||
pub use crate::repo_checkout_at_options::*;
|
pub use crate::repo_checkout_at_options::*;
|
||||||
|
pub use crate::se_policy::*;
|
||||||
|
|
||||||
// tests
|
// tests
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
|
|
|
||||||
|
|
@ -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());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue