Skip to content
This repository was archived by the owner on Jun 1, 2026. It is now read-only.

Add sepolicy for dm backend app - #334

Open
chenyanxzhu wants to merge 1 commit into
projectceladon:celadon/u/mr0/masterfrom
chenyanxzhu:umr0_dm_backend
Open

chenyanxzhu wants to merge 1 commit into
projectceladon:celadon/u/mr0/masterfrom
chenyanxzhu:umr0_dm_backend

Conversation

@chenyanxzhu

Copy link
Copy Markdown

Tracked-On:

@sysopenci

Copy link
Copy Markdown

Improper Commit Message
Proper Tracked on value is not present in
commit message,make sure Tracked-on: jira-ticket is present

@sysopenci

Copy link
Copy Markdown

Improper Commit Message
Proper Tracked on value is not present in
commit message,make sure Tracked-on: jira-ticket is present

@sysopenci

Copy link
Copy Markdown

Improper Commit Message
Proper Tracked on value is not present in
commit message,make sure Tracked-on: jira-ticket is present

@sysopenci

Copy link
Copy Markdown

Improper Commit Message
Proper Tracked on value is not present in
commit message,make sure Tracked-on: jira-ticket is present

@sysopenci

Copy link
Copy Markdown

Improper Commit Message
Proper Tracked on value is not present in
commit message,make sure Tracked-on: jira-ticket is present

@sysopenci

Copy link
Copy Markdown

Improper Commit Message
Proper Tracked on value is not present in
commit message,make sure Tracked-on: jira-ticket is present

@sysopenci

Copy link
Copy Markdown

Improper Commit Message
Proper Tracked on value is not present in
commit message,make sure Tracked-on: jira-ticket is present

@feijiang1 feijiang1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sysopenci

Copy link
Copy Markdown

Android CI has started Engineering Build for this issue ,Please check the linked Tracked-On issue/Android CI Web for more details.

@sysopenci

Copy link
Copy Markdown

SUCCESS: Android CI has completed Engineering Build for this issue.Please check the linked Tracked-On issue/Android CI Web for more details.

@sysopenci

Copy link
Copy Markdown

Android CI has started Engineering Build for this issue ,Please check the linked Tracked-On issue/Android CI Web for more details.

@sysopenci

Copy link
Copy Markdown

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;

Copy link
Copy Markdown
Contributor

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;

Copy link
Copy Markdown
Contributor

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;

Copy link
Copy Markdown
Contributor

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 };

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor

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

@sysopenci

Copy link
Copy Markdown

Android CI has started Engineering Build for this issue ,Please check the linked Tracked-On issue/Android CI Web for more details.

@sysopenci

Copy link
Copy Markdown

SUCCESS: Android CI has completed Engineering Build for this issue.Please check the linked Tracked-On issue/Android CI Web for more details.

@sysopenci

Copy link
Copy Markdown

one of the dependent pr cannot be Rebase and Merged; please fix the issue and commit your changes once again to run EB.

@sysopenci

Copy link
Copy Markdown

Android CI has started Engineering Build for this issue ,Please check the linked Tracked-On issue/Android CI Web for more details.

@sysopenci

Copy link
Copy Markdown

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 <chenyanx.zhu@intel.com>
@sysopenci

Copy link
Copy Markdown

Android CI has started Engineering Build for this issue ,Please check the linked Tracked-On issue/Android CI Web for more details.

@sysopenci

Copy link
Copy Markdown

FAILURE: Android CI has completed Engineering Build for this issue.Please check the linked Tracked-On issue/Android CI Web for more details.

@sysopenci

Copy link
Copy Markdown

Android CI has started Engineering Build for this issue ,Please check the linked Tracked-On issue/Android CI Web for more details.

@sysopenci

Copy link
Copy Markdown

FAILURE: Android CI has completed Engineering Build for this issue.Please check the linked Tracked-On issue/Android CI Web for more details.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants