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:
parent
7b47de7a14
commit
e33767cc2a
|
|
@ -192,6 +192,7 @@ status = "generate"
|
||||||
[[object]]
|
[[object]]
|
||||||
name = "OSTree.SePolicy"
|
name = "OSTree.SePolicy"
|
||||||
status = "generate"
|
status = "generate"
|
||||||
|
concurrency = "send"
|
||||||
[[object.function]]
|
[[object.function]]
|
||||||
# [IGNORE] has an unused raw pointer parameter
|
# [IGNORE] has an unused raw pointer parameter
|
||||||
name = "fscreatecon_cleanup"
|
name = "fscreatecon_cleanup"
|
||||||
|
|
|
||||||
|
|
@ -106,6 +106,8 @@ impl SePolicy {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unsafe impl Send for SePolicy {}
|
||||||
|
|
||||||
impl fmt::Display for SePolicy {
|
impl fmt::Display for SePolicy {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||||
f.write_str("SePolicy")
|
f.write_str("SePolicy")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue