1
0
Fork 0
forked from wry/wry

portal: implement RemoteDesktop portal

This commit is contained in:
Julian Orth 2024-07-24 17:57:48 +02:00
parent 40e87f8f91
commit 665127e6c0
22 changed files with 994 additions and 35 deletions

View file

@ -5,7 +5,7 @@ use {
};
pub struct PidInfo {
pub _uid: c::uid_t,
pub uid: c::uid_t,
pub pid: c::pid_t,
pub comm: String,
}
@ -18,11 +18,7 @@ pub fn get_pid_info(uid: c::uid_t, pid: c::pid_t) -> PidInfo {
"Unknown".to_string()
}
};
PidInfo {
_uid: uid,
pid,
comm,
}
PidInfo { uid, pid, comm }
}
pub fn get_socket_creds(socket: &OwnedFd) -> Option<(c::uid_t, c::pid_t)> {