Skip to content

Repository files navigation

Seccomp Logged Off

Español · English


Español

Módulo Magisk / KernelSU que desactiva los registros (logs) generados por seccomp vaciando la lista /proc/sys/kernel/seccomp/actions_logged en cada arranque.

▸ ¿Qué es seccomp?

Seccomp (secure computing mode) es un mecanismo del kernel que filtra las llamadas al sistema (syscalls) que puede hacer un proceso. Android lo usa para limitar lo que pueden hacer las apps y los servicios.

Cuando un filtro devuelve una acción distinta de ALLOW (por ejemplo, bloquear una syscall), el kernel puede registrar el evento mediante el subsistema de auditoría. Esos registros aparecen como líneas audit: type=1326 ... en dmesg / logcat.

▸ ¿Qué hace este módulo?

/proc/sys/kernel/seccomp/actions_logged es un sysctl de lectura/escritura con la lista de acciones de seccomp que sí se registran. Por defecto incluye todas, excepto allow (que nunca se puede registrar):

kill_process kill_thread trap errno user_notif trace log

El módulo escribe una lista vacía en ese archivo, así que ninguna acción se registra.

  • ✅ Menos ruido en dmesg y logcat
  • ✅ Solo una escritura al arrancar, sin procesos en segundo plano
  • ❌ No desactiva seccomp ni sus filtros: las apps siguen bloqueadas igual, solo se deja de escribir el aviso
  • ❌ No afecta a SELinux (los avc: denied siguen apareciendo)

▸ Requisitos

  • Magisk 20.4+ o KernelSU
  • Kernel con seccomp filter (Linux 4.14 o superior) y el archivo /proc/sys/kernel/seccomp/actions_logged disponible

El instalador comprueba que el archivo exista y aborta si no es así.

▸ Instalación

  1. Flashea el zip desde Magisk / KernelSU
  2. Reinicia el dispositivo

▸ Verificar que funciona

su -c cat /proc/sys/kernel/seccomp/actions_logged

La salida debe estar vacía. También puedes comprobarlo sin terminal pulsando el botón de acción del módulo en Magisk / KernelSU: te dirá si el registro de seccomp está desactivado.

Para ver las acciones que soporta tu kernel:

su -c cat /proc/sys/kernel/seccomp/actions_avail

▸ Desinstalación

Elimina el módulo y reinicia. El valor solo vive en memoria, así que tras el reinicio el kernel vuelve a su configuración por defecto.

Para restaurarlo sin reiniciar (ajusta la lista a lo que muestre actions_avail):

su -c 'echo "kill_process kill_thread trap errno user_notif trace log" > /proc/sys/kernel/seccomp/actions_logged'

▸ ⚠️ Nota para depuración

Con los registros desactivados es más difícil diagnosticar cierres de apps por SIGSYS (Bad system call), porque el kernel ya no deja constancia de qué syscall fue bloqueada. Si estás depurando algo así, desactiva el módulo temporalmente.

Extras


English

Magisk / KernelSU module that disables the logs generated by seccomp by clearing /proc/sys/kernel/seccomp/actions_logged on every boot.

▸ What is seccomp?

Seccomp (secure computing mode) is a kernel feature that filters the system calls (syscalls) a process may make. Android uses it to restrict what apps and services can do.

When a filter returns any action other than ALLOW (for example, blocking a syscall), the kernel can log the event through the audit subsystem. These show up as audit: type=1326 ... lines in dmesg / logcat.

▸ What does this module do?

/proc/sys/kernel/seccomp/actions_logged is a read/write sysctl holding the list of seccomp actions that are logged. By default it contains all of them except allow (which can never be logged):

kill_process kill_thread trap errno user_notif trace log

The module writes an empty list to that file, so no action gets logged.

  • ✅ Less noise in dmesg and logcat
  • ✅ A single write at boot, no background processes
  • ❌ It does not disable seccomp or its filters: apps are still blocked exactly the same, the kernel just stops logging it
  • ❌ It does not affect SELinux (avc: denied messages still appear)

▸ Requirements

  • Magisk 20.4+ or KernelSU
  • A kernel with seccomp filter support (Linux 4.14 or newer) and /proc/sys/kernel/seccomp/actions_logged available

The installer checks that the file exists and aborts otherwise.

▸ Installation

  1. Flash the zip from Magisk / KernelSU
  2. Reboot your device

▸ Verify it works

su -c cat /proc/sys/kernel/seccomp/actions_logged

The output should be empty. You can also check it without a terminal by tapping the module's action button in Magisk / KernelSU: it tells you whether seccomp logging is off.

To see the actions your kernel supports:

su -c cat /proc/sys/kernel/seccomp/actions_avail

▸ Uninstall

Remove the module and reboot. The value only lives in memory, so after rebooting the kernel goes back to its default configuration.

To restore it without rebooting (adjust the list to match actions_avail):

su -c 'echo "kill_process kill_thread trap errno user_notif trace log" > /proc/sys/kernel/seccomp/actions_logged'

▸ ⚠️ Debugging note

With logging disabled, it is harder to diagnose app crashes caused by SIGSYS (Bad system call), since the kernel no longer records which syscall was blocked. If you are debugging something like that, disable the module temporarily.


Extras

Releases

Packages

Contributors

Languages