[refactor] Warn on no perms.

main
Shinyzenith 2 years ago
parent 5da3789981
commit 021291c6a3
No known key found for this signature in database
GPG Key ID: A3DFCDC66E9E2950

@ -76,10 +76,10 @@ pub fn permission_check() -> bool {
if group.unwrap().unwrap().name == "input" {
log::error!("Note: INVOKING USER IS IN INPUT GROUP!!!!");
log::error!("THIS IS A HUGE SECURITY RISK!!!!");
log::error!("Consider using `pkexec swhkd ...`");
}
}
}
log::error!("Consider using `pkexec swhkd ...`");
return false; // If user is in input group, warn them and then exit regardless.
} else {
log::warn!("Running swhkd as root!");

Loading…
Cancel
Save