You've already forked KernelSU-Next
mirror of
https://github.com/KernelSU-Next/KernelSU-Next.git
synced 2025-08-27 23:46:34 +00:00
ksud_magic: reformat rust codes
This commit is contained in:
@@ -3,7 +3,7 @@ use crate::module::{handle_updated_modules, prune_modules};
|
|||||||
use crate::{assets, defs, ksucalls, restorecon, utils};
|
use crate::{assets, defs, ksucalls, restorecon, utils};
|
||||||
use anyhow::{Context, Result};
|
use anyhow::{Context, Result};
|
||||||
use log::{info, warn};
|
use log::{info, warn};
|
||||||
use rustix::fs::{mount, MountFlags};
|
use rustix::fs::{MountFlags, mount};
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
|
|
||||||
pub fn on_post_data_fs() -> Result<()> {
|
pub fn on_post_data_fs() -> Result<()> {
|
||||||
|
|||||||
@@ -7,17 +7,17 @@ use crate::utils::{ensure_dir_exists, get_work_dir};
|
|||||||
use anyhow::{Context, Result, bail};
|
use anyhow::{Context, Result, bail};
|
||||||
use extattr::lgetxattr;
|
use extattr::lgetxattr;
|
||||||
use rustix::fs::{
|
use rustix::fs::{
|
||||||
bind_mount, chmod, chown, mount, move_mount, unmount, Gid, MetadataExt, Mode, MountFlags,
|
Gid, MetadataExt, Mode, MountFlags, MountPropagationFlags, Uid, UnmountFlags, bind_mount,
|
||||||
MountPropagationFlags, Uid, UnmountFlags,
|
chmod, chown, mount, move_mount, unmount,
|
||||||
};
|
};
|
||||||
use rustix::mount::mount_change;
|
use rustix::mount::mount_change;
|
||||||
use rustix::path::Arg;
|
use rustix::path::Arg;
|
||||||
use std::cmp::PartialEq;
|
use std::cmp::PartialEq;
|
||||||
use std::collections::hash_map::Entry;
|
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
|
use std::collections::hash_map::Entry;
|
||||||
use std::fs;
|
use std::fs;
|
||||||
use std::fs::{create_dir, create_dir_all, read_dir, read_link, DirEntry, FileType};
|
use std::fs::{DirEntry, FileType, create_dir, create_dir_all, read_dir, read_link};
|
||||||
use std::os::unix::fs::{symlink, FileTypeExt};
|
use std::os::unix::fs::{FileTypeExt, symlink};
|
||||||
use std::path::{Path, PathBuf};
|
use std::path::{Path, PathBuf};
|
||||||
|
|
||||||
const REPLACE_DIR_XATTR: &str = "trusted.overlay.opaque";
|
const REPLACE_DIR_XATTR: &str = "trusted.overlay.opaque";
|
||||||
|
|||||||
Reference in New Issue
Block a user