SusFS LKM
v2.4.0

SUSFS как модуль ядра. Без пересборки.SUSFS as a kernel module. No rebuild.

Загрузите .ko на штатное GKI-ядро: файлы, маунты и прочие следы root пропадают из вида приложений. Выгрузили модуль, и всё как было. Load a .ko on a stock GKI kernel and root traces (files, mounts and more) disappear from apps' view. Unload the module and everything is back as it was.

  • arm64 · Android 12+
  • GKI 5.10 – 6.18
  • 8 вариантов KMI8 KMI targets
Что видит…Who is looking…
$ ls /data/adbksudmodules/ksu.logpost-fs-data.d/susfs_guard_lkm.ko$ grep -c susfs /proc/modules10
Иллюстрация. Реальные правила вы задаёте сами через /proc/susfs_*.Illustration. You define the real rules yourself via /proc/susfs_*.

Что умеетWhat it does

Те же возможности SUSFS, но в загружаемом модуле. Каждое правило включается отдельно.The SUSFS feature set, packaged as a loadable module. Every rule is switched on separately.

sus_path
Скрывает файлы и каталоги от приложений: stat, open, листинг каталога.Hides files and directories from apps: stat, open, directory listings.
sus_mount
Убирает ваши маунты из mountinfo для процессов без su; есть try_umount.Removes your mounts from mountinfo for non-su processes; try_umount included.
sus_kstat
Подменяет inode и время в stat(), statx() и maps.Spoofs inode and timestamps in stat(), statx() and maps.
sus_map
Прячет отображённый файл в maps, smaps, map_files и pagemap.Hides the mapped file in maps, smaps, map_files and pagemap.
open_redirect
Перенаправляет open() одного файла на другой.Redirects open() of one file to another.
uname / cmdline
Подменяет uname и cmdline / bootconfig.Spoofs uname and cmdline / bootconfig.
avc_spoof
Чистит следы KernelSU в аудит-логе SELinux (AVC).Hides KernelSU traces in the SELinux AVC audit log.
hide_modules
Убирает выбранные модули из /proc/modules, включая сам susfs.Drops chosen modules, susfs itself included, from /proc/modules.
priority filter2.4.0
Скрывает выбранные UID приложений от getpriority, setpriority, ioprio_get и ioprio_set для недоверенных процессов (uid ≥ 10000).Hides selected app UIDs from getpriority, setpriority, ioprio_get and ioprio_set for untrusted processes (uid ≥ 10000).
sus_path UID filter2.4.0
Команда SUSFS 2.4.0 для привязки правил sus_path к UID приложений.SUSFS 2.4.0 command that ties sus_path rules to app UIDs.

УстановкаInstall

Выберите способ. Для большинства устройств с KernelSU подходит ZIP-модуль.Pick a method. For most KernelSU devices the ZIP module is the way to go.

  1. Скачайте SusFS-LKM-by-uran-<версия>.zip из Releases.Download SusFS-LKM-by-uran-<version>.zip from Releases.
  2. Прошейте его в менеджере KernelSU и перезагрузитесь.Flash it in the KernelSU manager and reboot.

Модуль сам выбирает .ko по /proc/sys/kernel/osrelease и грузит его с expose_proc=1, поэтому появляются узлы /proc/susfs_*. Если SUSFS уже есть в системе, загрузка пропускается. В безопасном режиме модуль тоже ничего не грузит.The module picks the .ko from /proc/sys/kernel/osrelease and loads it with expose_proc=1, so the /proc/susfs_* nodes appear. If SUSFS is already present, loading is skipped. Safe mode skips it too.

Ранняя загрузка (post-fs-data.d) включена по умолчанию. Чтобы выключить, создайте файл и перезагрузитесь:Early loading (post-fs-data.d) is on by default. To turn it off, create this file and reboot:

touch /data/adb/modules/susfs_guard_lkm/no_early_load

Нужный KMI можно задать вручную: впишите его в файл kmi_override внутри модуля, например android14-6.1.To force a KMI, write it into the kmi_override file inside the module, for example android14-6.1.

Удаление: отключите или удалите модуль и перезагрузитесь, либо выгрузите на лету:Removal: disable or remove the module and reboot, or unload it live:

rmmod susfs_guard_lkm

KMI

KMI можно прочитать из версии ядра: у 6.1.75-android14-11 это android14-6.1. Узнать версию: cat /proc/sys/kernel/osrelease.You can read the KMI off the kernel version: 6.1.75-android14-11 is android14-6.1. Check it with cat /proc/sys/kernel/osrelease.

KMIAndroidЯдроKernelФайл в релизеRelease file
android12-5.10125.10…-android12-5.10.ko
android13-5.10135.10…-android13-5.10.ko
android13-5.15135.15…-android13-5.15.ko
android14-5.15145.15…-android14-5.15.ko
android14-6.1146.1…-android14-6.1.ko (настроено под OnePlus Ace 5)(tuned for OnePlus Ace 5)
android15-6.6156.6…-android15-6.6.ko
android16-6.12166.12…-android16-6.12.ko
android17-6.18176.18…-android17-6.18.ko

Узлы /proc/proc nodes

Правила задаются записью в узлы. Они есть, если модуль загружен с expose_proc=1. Прочитать список правил можно через cat.Rules are set by writing to these nodes. They exist when the module is loaded with expose_proc=1. Read the current rules with cat.

УзелNodeНазначениеPurpose
/proc/susfs_pathПравила sus_path, cat показывает список.sus_path rules; cat shows the list.
/proc/susfs_kstatПодмена stat / statx / maps.stat / statx / maps spoofing.
/proc/susfs_mapСкрытие отображённых файлов по inode.Hides mapped files by inode.
/proc/susfs_hide_mountsКакие маунты считаются «вашими» и скрываются.Which mounts count as yours and get hidden.
/proc/susfs_hide_modulesСкрытие модулей ядра в /proc/modules.Hides kernel modules in /proc/modules.
/proc/susfs_open_redirectПеренаправление open().open() redirection.
/proc/susfs_opathСамопроверка покрытия open(O_PATH), только чтение.Self-check of open(O_PATH) coverage, read-only.
/proc/susfs_enable_logЛог модуля: 0 или 1.Module log switch: 0 or 1.
/proc/susfs_avc_spoofПодмена AVC-лога: 0 или 1.AVC log spoofing: 0 or 1.
/proc/susfs_priorityФильтр UID для getpriority / ioprio (2.4.0).UID filter for getpriority / ioprio (2.4.0).

Подробные команды каждого узла описаны в PROC_INTERFACES оригинального проекта. В этом форке часть узлов может отличаться.Per-node commands are documented in the original project's PROC_INTERFACES. Some nodes may differ in this fork.

Сборка в GitHub ActionsBuild with GitHub Actions

Локальное ядро не нужно: всё собирается в контейнерах DDK. Запуск работает и с телефона.No local kernel needed: everything builds in DDK containers. You can start it from a phone too.

  1. Репозиторий → Actions → Build SusFS LKM by uran → Run workflow.Repository → Actions → Build SusFS LKM by uran → Run workflow.
  2. kernel: universal (все 8 KMI и ZIP) или один KMI.universal (all 8 KMIs and the ZIP) or a single KMI.
  3. publish_release: создать GitHub Release с ZIP и всеми .ko.create a GitHub Release with the ZIP and all .ko files.
  4. release_tag: свой тег, например v2.4.0-r2 или r2. Пусто, и номер -rN вырастет сам.custom tag, for example v2.4.0-r2 or r2. Leave empty and -rN increments by itself.

FAQ

Нужно ли пересобирать ядро?Do I need to rebuild the kernel?

Нет. Это отдельный .ko, берите тот, что совпадает с KMI вашего устройства.No. It is a standalone .ko; take the one that matches your device's KMI.

Как понять, какой у меня KMI?How do I find my KMI?

Выполните cat /proc/sys/kernel/osrelease. Строка 6.6.30-android15-… означает android15-6.6. ZIP-модуль определяет KMI сам.Run cat /proc/sys/kernel/osrelease. A string like 6.6.30-android15-… means android15-6.6. The ZIP module detects it for you.

Работает без KernelSU?Does it work without KernelSU?

Да, через загрузчик susfs_insmod из ZIP. Нужен root, arm64 и подходящее GKI-ядро.Yes, with the susfs_insmod loader from the ZIP. You need root, arm64 and a matching GKI kernel.

После прошивки нет /proc/susfs_*/proc/susfs_* is missing after flashing

Проверьте, что модуль загрузился: lsmod | grep susfs, и посмотрите load.log в папке модуля. Узлы создаются только при expose_proc=1. Если в ядре уже есть SUSFS, модуль не грузится.Check that the module loaded: lsmod | grep susfs, and read load.log in the module folder. The nodes are created only with expose_proc=1. If the kernel already has SUSFS, the module does not load.

Трогает ли это раздел ядра?Does it touch the kernel partition?

Нет. Модуль работает только в памяти. Отключите его, перезагрузитесь, и система чистая.No. The module lives in memory only. Disable it, reboot, and the system is clean.