Make SePolicy have Send

It's safe to send between threads, and I want to do so
in ostree-rs-ext to send to a tokio worker thread.
This commit is contained in:
Colin Walters 2021-09-20 17:53:16 -04:00
parent 7b47de7a14
commit e33767cc2a
2 changed files with 3 additions and 0 deletions

View File

@ -192,6 +192,7 @@ status = "generate"
[[object]]
name = "OSTree.SePolicy"
status = "generate"
concurrency = "send"
[[object.function]]
# [IGNORE] has an unused raw pointer parameter
name = "fscreatecon_cleanup"

View File

@ -106,6 +106,8 @@ impl SePolicy {
}
}
unsafe impl Send for SePolicy {}
impl fmt::Display for SePolicy {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.write_str("SePolicy")