Description
Hello,
I’d like to suggest a clarification in the seandroid.md
documentation regarding the explanation of the levelFrom
option.
Current issue:
The descriptions for levelFrom=app
and levelFrom=all
may be misleading or imprecise:
-
levelFrom=app
is currently described as:determines the level from the process UID
This is misleading, as it implies the full UID is used, when in fact only the app ID (i.e., the lower part of the UID) is extracted. -
levelFrom=all
is described as:determines the level from both UID and user ID
This can also cause confusion, as the UID already contains the user ID (in its upper digits), so it’s effectively based on the full UID.
Suggested improvement:
To make the intention clearer, consider rephrasing as:
levelFrom=app
: determines the level from the app ID (extracted from the process UID)levelFrom=all
: determines the level from the full process UID (user ID + app ID)
This would help readers who are familiar with Android’s UID layout better understand how SELinux level generation works in SEAndroid.
Thanks for maintaining this valuable resource!