Skip to content

Commit

Permalink
Add sepolicy for dm backend app
Browse files Browse the repository at this point in the history
Tracked-On:
Signed-off-by: chenyanxzhu <[email protected]>
  • Loading branch information
chenyanxzhu committed Aug 16, 2024
1 parent 4cbfbd0 commit facb64d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
10 changes: 10 additions & 0 deletions graphics/dm_backend/backend_client_app.te
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
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;
type dm_backend_client_app, domain;

#============= dm_backend_client_app ==============
allow dm_backend_client_app dm_backend_ipc_data_file:dir { add_name remove_name };
allow dm_backend_client_app dm_backend_ipc_data_file:sock_file { create unlink write };

allow dm_backend_client_app dm_backend_app_data_file:dir create_dir_perms;

3 changes: 3 additions & 0 deletions graphics/dm_backend/file_contexts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#dm_backend_app /data/vendor/dm_backend_app permission
/data/vendor/dm_backend_app(/.*)? u:object_r:dm_backend_ipc_data_file:s0

1 change: 1 addition & 0 deletions graphics/dm_backend/seapp_contexts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
user=system seinfo=platform name=com.intel.dm_backend domain=dm_backend_client_app type=dm_backend_app_data_file

0 comments on commit facb64d

Please sign in to comment.