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:
backslashxx
2025-11-18 11:10:44 +08:00
committed by ShirkNeko
parent 58c8289890
commit 029ae8d389
48 changed files with 252 additions and 260 deletions

View File

@@ -124,7 +124,6 @@
<string name="selected_lkm">LKM selecionado: %s</string>
<string name="save_log">Salvar Registros</string>
<string name="log_saved">Registros salvos</string>
<string name="sus_su_mode">Modo SU SuSU:</string>
<!-- Module related -->
<string name="module_install_confirm">¿confirmar la instalación del módulo %1$s?</string>
<string name="unknown_module">módulo desconocido</string>
@@ -274,8 +273,6 @@
<string name="advanced_settings">Configurações Avançadas</string>
<string name="appearance_settings">Personaliza a barra de ferramentas.</string>
<string name="back">Retorno</string>
<string name="susfs_enabled">SuSFS habilitado</string>
<string name="susfs_disabled">SuSFS desativado</string>
<string name="background_set_success">Fundo definido com sucesso</string>
<string name="background_removed">Remover</string>
<string name="icon_switch_title">Ícone alternativo</string>