kernel: expose umount list to ioctl interface (#2950)
This idea is borrowed from simonpunk's susfs4ksu. What we see here is that, yeah well, lets just have userspace send us what it wants unmounted, this is better than hardcoding everything. This also solves that issue where MNT_DETACH fails, as long as we send unmountables in proper order. A small anti-duplicate mechanism is also added. While in-kernel umount is a bit worse than zygisk-provider-based ones, this can still serve as a healthy alternative. --------- - Remove duplicate checks Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com> Co-authored-by: weishu <twsxtd@gmail.com> Co-authored-by: ShirkNeko <109797057+ShirkNeko@users.noreply.github.com>
This commit is contained in:
@@ -115,7 +115,6 @@
|
||||
<string name="install_upload_lkm_file">Use local LKM file</string>
|
||||
<string name="install_only_support_ko_file">Only .ko files are supported</string>
|
||||
<string name="select_file_tip">%1$s partition image is recommended</string>
|
||||
<string name="select_file_tip_vendor">(Unstable)</string>
|
||||
<string name="select_kmi">Select KMI</string>
|
||||
<string name="settings_uninstall">Uninstall</string>
|
||||
<string name="settings_uninstall_temporary">Uninstall temporarily</string>
|
||||
@@ -130,7 +129,6 @@
|
||||
<string name="selected_lkm">Selected LKM: %s</string>
|
||||
<string name="save_log">Save logs</string>
|
||||
<string name="log_saved">Logs saved</string>
|
||||
<string name="sus_su_mode">SuS SU mode:</string>
|
||||
<!-- Module related -->
|
||||
<string name="module_install_confirm">Confirm install module %1$s?</string>
|
||||
<string name="unknown_module">Unknown module</string>
|
||||
@@ -292,8 +290,6 @@
|
||||
<string name="advanced_settings">Advanced Settings</string>
|
||||
<string name="appearance_settings">Customize the toolbar</string>
|
||||
<string name="back">Comeback</string>
|
||||
<string name="susfs_enabled">SuSFS enabled</string>
|
||||
<string name="susfs_disabled">SuSFS disabled</string>
|
||||
<string name="background_set_success">Background set successfully</string>
|
||||
<string name="background_removed">Removed custom backgrounds</string>
|
||||
<string name="icon_switch_title">Alternate icon</string>
|
||||
@@ -610,7 +606,6 @@
|
||||
<string name="loop_paths_section">Loop Paths</string>
|
||||
<string name="add_loop_path">Add Loop Path</string>
|
||||
<!-- 循环路径功能描述 -->
|
||||
<string name="sus_loop_path_feature_label">SUS Loop Path</string>
|
||||
<string name="sus_loop_paths_description_title">Loop Path Configuration</string>
|
||||
<string name="sus_loop_paths_description_text">Loop paths are re-flagged as SUS_PATH on each non-root user app or isolated service startup. This helps address issues where added paths may have their inode status reset or inode re-created in the kernel</string>
|
||||
<string name="avc_log_spoofing">AVC Log Spoofing</string>
|
||||
@@ -668,7 +663,6 @@ Important Note:\n
|
||||
<string name="uid_multi_user_scan_title">Multi-User Application Scanning</string>
|
||||
<string name="uid_multi_user_scan_summary">When enabled, scans applications for all users, including work profiles</string>
|
||||
<string name="uid_scanner_setting_failed">Setting failed, please check permissions</string>
|
||||
<string name="uid_scanner_setting_error">Setting failed: %s</string>
|
||||
<string name="clean_runtime_environment">Clean Runtime Environment</string>
|
||||
<string name="clean_runtime_environment_summary">Clean up runtime files and stop the scanner service</string>
|
||||
<string name="clean_runtime_environment_confirm">Are you sure you want to clean the runtime environment? This will stop the scanner service and remove related files.</string>
|
||||
@@ -711,9 +705,6 @@ Important Note:\n
|
||||
<string name="log_viewer_clear_logs">Clear Logs</string>
|
||||
<string name="log_viewer_clear_logs_confirm">Are you sure you want to clear the selected log file? This action cannot be undone.</string>
|
||||
<string name="log_viewer_logs_cleared">Logs cleared successfully</string>
|
||||
<string name="log_viewer_select_file">Select Log File</string>
|
||||
<string name="log_viewer_current_log">Current Log</string>
|
||||
<string name="log_viewer_old_log">Old Log</string>
|
||||
<string name="log_viewer_filter_type">Filter by Type</string>
|
||||
<string name="log_viewer_all_types">All Types</string>
|
||||
<string name="log_viewer_showing_entries">Showing %1$d of %2$d entries</string>
|
||||
@@ -742,8 +733,6 @@ Important Note:\n
|
||||
<string name="umount_path_restart_notice">A reboot is required for changes to take effect. The system will apply the new configuration on the next boot.</string>
|
||||
<string name="add_umount_path">Add Umount Path</string>
|
||||
<string name="mount_path">Mount Path</string>
|
||||
<string name="check_mount_type">Check Mount Type</string>
|
||||
<string name="check_mount_type_overlay">Check if it is an overlay type</string>
|
||||
<string name="umount_flags">Unmount Flags</string>
|
||||
<string name="umount_flags_hint">0=Normal unmount, 8=MNT_DETACH, -1=Auto</string>
|
||||
<string name="flags">Flags</string>
|
||||
|
||||
Reference in New Issue
Block a user