Android SELinux Security Expert

•
26
•

Resolves SELinux denials and manages AOSP security policies while ensuring Treble compliance and system hardening.

This skill acts as a specialized authority for Android SELinux (Security-Enhanced Linux) policy development and debugging. It automates the interpretation of 'avc: denied' logs, drafts minimal and secure allow rules, and manages complex policy structures across system, vendor, and device layers. It is particularly adept at navigating Treble-compliant policy splits, enforcing neverallow constraints, and implementing the latest security hardening features introduced in Android 15 and 16, such as restricted IOCTL filtering and KeyMint 4.0 attestation. It helps developers maintain a secure, certified Android environment by coordinating between kernel-level denials and userspace policy definitions.

Key Features

01Automated avc: denied log analysis and minimum-privilege rule generation
02Enforcement of platform neverallow rules and security boundaries
0326 GitHub stars
04Management of Treble-compliant policy splits (Public vs. Private vs. Vendor)
05Support for Android 16 IOCTL hardening macros and KeyMint attestation
06Automated labeling for file, property, and service contexts

Use Cases

01Debugging CTS SELinux test failures during device bring-up and certification
02Resolving system permission denials when adding new vendor daemons or HALs
03Hardening kernel drivers against unauthorized IOCTL calls for production builds