diff --git a/rust-bindings/rust/src/lib.rs b/rust-bindings/rust/src/lib.rs index 9bc4a8e8..274b4798 100644 --- a/rust-bindings/rust/src/lib.rs +++ b/rust-bindings/rust/src/lib.rs @@ -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)] diff --git a/rust-bindings/rust/src/se_policy.rs b/rust-bindings/rust/src/se_policy.rs new file mode 100644 index 00000000..cef15094 --- /dev/null +++ b/rust-bindings/rust/src/se_policy.rs @@ -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()); + } + } +}