Skip to content

Commit

Permalink
ksud: Fix compilations
Browse files Browse the repository at this point in the history
Signed-off-by: rsuntk <rissu.ntk@gmail.com>
  • Loading branch information
rsuntk committed Dec 10, 2024
1 parent 954f3a6 commit c3cba8e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
13 changes: 0 additions & 13 deletions userspace/ksud/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,6 @@ enum Commands {
/// Trigger `boot-complete` event
BootCompleted,

/// Install KernelSU userspace component to system
Install {
#[arg(long, default_value = None)]
magiskboot: Option<PathBuf>,
},

/// Uninstall KernelSU modules and itself(LKM Only)
Uninstall {
/// magiskboot path, if not specified, will search from $PATH
#[arg(long, default_value = None)]
magiskboot: Option<PathBuf>,
},

/// SELinux policy Patch tool
Sepolicy {
#[command(subcommand)]
Expand Down
5 changes: 1 addition & 4 deletions userspace/ksud/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,14 @@ use std::{
Write,
},
path::Path,
process::Command,
};

use crate::{assets, defs, ksucalls, module, restorecon};
use crate::ksucalls;
#[allow(unused_imports)]
use std::fs::{set_permissions, Permissions};
#[cfg(unix)]
use std::os::unix::prelude::PermissionsExt;

use std::path::PathBuf;

#[cfg(any(target_os = "linux", target_os = "android"))]
use rustix::{
process,
Expand Down

0 comments on commit c3cba8e

Please sign in to comment.