mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-04 16:35:19 +00:00
1 parent
2408758360
commit
f531cd23ee
43 files changed
+216
-62
No files matched your search
@@ -1369,3 +1369,11 @@ impl Drop for WallPaperRemover {
|
||||
pub fn is_x11() -> bool {
|
||||
*IS_X11
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn is_selinux_enabled() -> bool {
|
||||
match selinux::kernel_support() {
|
||||
selinux::KernelSupport::Unsupported => false,
|
||||
_ => selinux::current_mode() == selinux::SELinuxMode::Enforcing,
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user