Every entry says what it is good for and when to reach for it, because the volume of SELinux material is large and most of it is written for Red Hat rather than for Android.
Sources are grouped by how you would actually use them: read the model once, read the Android specifics carefully, and then live in the AOSP tree and on the device.
AOSP — Security-Enhanced Linux in Android — https://source.android.com/docs/security/features/selinux
The canonical Android overview. Short, accurate, and it establishes the vocabulary the rest of the ecosystem uses. Read the "Concepts" and "Implementing" pages before anything else.
The SELinux Notebook, Richard Haines
The standard free reference for the SELinux model — types, attributes, constraints, MLS, the policy languages, and CIL. Android-agnostic, which is exactly why it is useful: it explains the machinery this chapter applies. The MLS chapter is the best explanation of dom and constraints anywhere, and the CIL chapter is the only readable explanation of the syntax you find on a device.
If you read only one non-Android source, read the Notebook's chapters on Type Enforcement, Constraints and MLS. Those three cover almost everything README §3.3 and §3.7 build on.
The single most important file for this chapter.seapp_context_lookup, seapp_context_cmp (the specificity sort), selinux_android_setcontext, and the MCS arithmetic verified in §3.7.
external/selinux/libselinux/src/
getcon, setcon, security_compute_av, selinux_check_access — the userspace API
external/selinux/libsepol/
policy manipulation; the basis of sepolicy-analyze
external/selinux/secilc/
the CIL compiler init runs on device when the precompiled hash does not match
external/selinux/checkpolicy/
the classic .te compiler
system/core/init/selinux.cpp
how init loads or compiles policy at boot, and the precompiled-hash comparison — §4.2
system/core/init/property_service.cpp
where property_service:set is checked, and why property denials come wrapped in an init record
frameworks/base/core/java/android/os/SELinux.java
the entire @hide Java surface — six methods, no policy access
every LSM hook SELinux implements — the map from "operation" to "permission checked"
security/selinux/avc.c
the Access Vector Cache, and avc_audit() — where the avc: denied text is actually formatted
security/selinux/ss/services.c
security_compute_av, constraint evaluation, the security server
security/selinux/selinuxfs.c
/sys/fs/selinux — enforce, policy, class/, avc/
security/lsm_audit.c
dump_common_audit_data — the switch that decides which fields appear in a record. Read this if you are writing a parser: it is why path=, name=, capability= and "nothing at all" are all valid, depending on class.
see §1. The single best free reference for the model.
SELinux by Example, Frank Mayer, Karl MacMillan, David Caplan
the standard book. Pre-Android, so all the examples are Red Hat, but the chapters on Type Enforcement, constraints and MLS are the model itself and transfer directly.
Flask architecture papers (Spencer, Smalley, Loscocco et al.)
the design rationale for separating policy from enforcement mechanism, which is what makes the AVC possible. Read once, for the why.
NSA papers on Type Enforcement
the original argument for labelling programs rather than users
"SEAndroid" (USENIX Security), Smalley and Craig
the academic presentation of the Android port. The primary source on why MCS was chosen for app isolation rather than per-app types.
Stephen Smalley's Linux Security Summit talks
search "Android SELinux Smalley". The primary source on design decisions, including the zygote dyntransition approach.
Project Zero's Android kernel posts
the clearest public writing on defeating the MAC layer from the kernel side — which is the honest answer to "how is SELinux actually bypassed"
On conference talks: rather than cite URLs that rot, the search terms above are given deliberately. For SELinux bypass talks specifically, read them for the technique class rather than the specific bug — the bugs are long fixed and the classes are not.
This chapter cites no specific CVE numbers, and that is a decision rather than an oversight.
SELinux-related Android vulnerabilities are essentially never filed against SELinux. They are filed against the component that was compromised, and SELinux appears only in the severity assessment — as the thing that did, or did not, contain the bug. Quoting an identifier and attributing it to SELinux would misrepresent the record.
The classes are stable and checkable, and are what you should look for:
MASVS-STORAGE-1/2, MASVS-PLATFORM-1, MASVS-CODE-4, MASVS-CRYPTO-2 and MASVS-RESILIENCE-1 all rest on SELinux behaviour without naming it. Mapped in §5.12.
MASTG — https://mas.owasp.org/MASTG/
SELinux appears as an environmental precondition rather than as a test case. Worth knowing before you go looking for a test that does not exist.
Everything below was produced during the writing of this chapter. Where a file says "measured", it came off a physical arm64 device running Android 13 / API 33, stock user build, SELinux Enforcing, not rooted.
~40 policy rules with commentary, covering the zygote transition, the MLS constraints, the code-execution permissions, dex2oat, keystore2_key, sockets and Binder
grepped out of the device's own 1,981,460-byte plat_sepolicy.cil
the UID sandbox, DAC, seccomp-bpf, capability dropping, isolatedProcess from the sandbox side
the MAC layer. The two enforce independently and both must permit an operation. A DAC bug leaves MAC standing and vice versa; the same EACCES comes from either.