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

service.sh: Restore SELinux labels on DP data directory during boot #600

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

chenxiaolong
Copy link
Owner

OxygenOS on OnePlus devices seems to create the /data/user_de/0/<id> directory with the wrong SELinux label initially. However, once the correct label is set, it persists just fine. Despite it persisting, we still need to run restorecon during boot instead of during installation because it requires PackageManager to already be aware of BCR.

Fixes: #582
Fixes: #591
Fixes: #598

OxygenOS on OnePlus devices seems to create the /data/user_de/0/<id>
directory with the wrong SELinux label initially. However, once the
correct label is set, it persists just fine. Despite it persisting, we
still need to run restorecon during boot instead of during installation
because it requires PackageManager to already be aware of BCR.

Fixes: #582
Fixes: #591
Fixes: #598

Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
@chenxiaolong chenxiaolong self-assigned this Sep 9, 2024
@chenxiaolong chenxiaolong merged commit 1e262e3 into master Sep 9, 2024
1 check passed
chenxiaolong added a commit that referenced this pull request Sep 9, 2024
Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
@chenxiaolong chenxiaolong deleted the oneplus branch September 9, 2024 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Settings/Config not persist a reboot BCR and OnePlus (OOS14) 1.69 bug
1 participant