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 committed 2022-05-06 12:53:57 -04:00
1 parent 7b47de7a14
commit e33767cc2a
2 files changed
+3

No files matched your search

+1
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"
+2
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")