Skip to content

Clarify levelFrom=app and levelFrom=all descriptions regarding UID/appId #47

Closed
@yongrakCho

Description

@yongrakCho

https://github.com/SELinuxProject/selinux-notebook/blame/8cfd893c16a82d86b42c9c684330e2f8db3bd137/src/seandroid.md#L1254

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions