Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CPUINFO_AVOID_SELINUX_VIOLATIONS to ARM parser #242

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

prashanthswami
Copy link
Contributor

For Android ARM builds, we previously introduced parsing of some non-standard properties:

  • ro.mediatek.platform
  • ro.chipname
  • ro.hardware.chipname

In this context, 'non-standard' refers to properties that are not supported by all Android devices and in particular, are not specified as part of any domain in Android's platform sepolicy. As a result, processes that contain the cpuinfo library will generate SELinux denials until the system is modified to allow access to these properties, even though they are not valid on these systems.

To avoid breaking existing behavior, introduce a negative-flag that allows users to compile out this behavior.

For Android ARM builds, we previously introduced parsing of some
non-standard properties:

* ro.mediatek.platform
* ro.chipname
* ro.hardware.chipname

In this context, 'non-standard' refers to properties that are not
supported by all Android devices and in particular, are not specified as
part of any domain in Android's platform sepolicy. As a result,
processes that contain the cpuinfo library will generate SELinux
denials until the system is modified to allow access to these
properties, even though they are not valid on these systems.

To avoid breaking existing behavior, introduce a negative-flag that
allows users to compile out this behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants