App Profiles and Templates in KernelSU

App Profiles are KernelSU's per app root configuration. Instead of one global root policy, each app gets a profile that customises its su: the uid, gid, groups, capabilities and SELinux rules it runs with. That granularity hardens root privileges, since an app gets exactly the privileges its profile allows and nothing more.
Templates arrived as the promised companion to profiles. A template can be created by hand, imported from another author, or taken from the online templates, and then applied directly to an App Profile without setting each field manually. The point is that people who do not understand the underlying concepts can still restrict root privileges sensibly, by applying a template built by someone who does. KernelSU APK download
On this page
Using Templates
Open the App Profile for the app, choose a template, and apply it. Online templates are community contributions, so read what a template changes before applying it to a sensitive app, and prefer templates with clear descriptions of their rules. A template is a starting point: the profile remains editable after it is applied, and the fields can be adjusted for the app in hand. App Profiles and root detection
Writing a Custom Profile
Start from the app's actual needs. A root file manager needs broad access, while a root terminal for one task needs far less. Set the uid, gid and groups to the minimum that works, limit capabilities to those the task needs, and keep the SELinux rules tight. Test the app after each change, since an over tight profile breaks the app in ways that look like bugs. how root is granted
Frequently Asked Questions
What is an App Profile?
A per app root configuration in KernelSU that customises su: uid, gid, groups, capabilities and SELinux rules.
What are App Profile templates?
Shareable, ready made profiles that can be created, imported or taken from online templates and applied to an App Profile directly.
Should I edit a profile after applying a template?
Yes, where the app needs it. A template is a starting point, and the profile stays editable after it is applied.