su: support drop capabilities

This commit is contained in:
vvb2060
2025-07-03 02:42:08 -07:00
committed by John Wu
parent 37a9724a54
commit ff18cb8e70
8 changed files with 97 additions and 14 deletions
+2
View File
@@ -88,6 +88,7 @@ pub mod ffi {
Query,
Deny,
Allow,
Restrict,
}
struct ModuleInfo {
@@ -117,6 +118,7 @@ pub mod ffi {
target_pid: i32,
login: bool,
keep_env: bool,
drop_cap: bool,
shell: String,
command: String,
context: String,