-
Notifications
You must be signed in to change notification settings - Fork 95
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 sepolicy for dm backend app #334
base: celadon/u/mr0/master
Are you sure you want to change the base?
Add sepolicy for dm backend app #334
Conversation
Improper Commit Message |
3d8d49e
to
facb64d
Compare
Improper Commit Message |
facb64d
to
6af2895
Compare
Improper Commit Message |
6af2895
to
3e8a74f
Compare
Improper Commit Message |
3e8a74f
to
5ec14c1
Compare
Improper Commit Message |
5ec14c1
to
4ba20fb
Compare
Improper Commit Message |
4ba20fb
to
092dc50
Compare
Improper Commit Message |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Android CI has started Engineering Build for this issue ,Please check the linked Tracked-On issue/Android CI Web for more details. |
SUCCESS: Android CI has completed Engineering Build for this issue.Please check the linked Tracked-On issue/Android CI Web for more details. |
Android CI has started Engineering Build for this issue ,Please check the linked Tracked-On issue/Android CI Web for more details. |
FAILURE: Android CI has completed Engineering Build for this issue.Please check the linked Tracked-On issue/Android CI Web for more details. |
@@ -0,0 +1,36 @@ | |||
type dm_backend_ipc_data_file, file_type, data_file_type; | |||
type dm_backend_app_data_file, file_type, data_file_type, app_data_file_type; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
put these two lines to file.te
app_domain(dm_backend_client_app) | ||
net_domain(dm_backend_client_app) | ||
|
||
#permissive dm_backend_client_app; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove all the rules you comment out
allow dm_backend_client_app dm_backend_app_data_file:dir create_dir_perms; | ||
#allow dm_backend_client_app default_prop:file read; | ||
#get_prop(dm_backend_client_app, default_prop) | ||
allow dm_backend_client_app dm_backend_app_data_file:file unlink; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remote this line
allow dm_backend_client_app activity_service:service_manager find; | ||
allow dm_backend_client_app activity_task_service:service_manager find; | ||
allow dm_backend_client_app content_capture_service:service_manager find; | ||
allow dm_backend_client_app dm_backend_app_data_file:file { create open read setattr write }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use create_file_perms instead
#dm_backend_app /data/vendor/dm_backend_app permission | ||
/data/vendor/dm_backend_app(/.*)? u:object_r:dm_backend_ipc_data_file:s0 | ||
/system/bin/dm-backend u:object_r:dm_backend_server_exec:s0 | ||
/system/bin/acrn-bkend-server u:object_r:dm_backend_server_exec:s0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't assign a vendor file type to file in system partition
Android CI has started Engineering Build for this issue ,Please check the linked Tracked-On issue/Android CI Web for more details. |
SUCCESS: Android CI has completed Engineering Build for this issue.Please check the linked Tracked-On issue/Android CI Web for more details. |
Tracked-On: OAM-124639 Signed-off-by: chenyanxzhu <[email protected]>
14480d9
to
62e2a25
Compare
one of the dependent pr cannot be Rebase and Merged; please fix the issue and commit your changes once again to run EB. |
Android CI has started Engineering Build for this issue ,Please check the linked Tracked-On issue/Android CI Web for more details. |
SUCCESS: Android CI has completed Engineering Build for this issue.Please check the linked Tracked-On issue/Android CI Web for more details. |
Tracked-On: