-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enabling mock rpmb module sepolicy which is required for creating of the creation of mock RPMB in /data on boot up. Tests Done: 1. Boot the device in MTL nuc. 2. storageproxyd service is running. Tracked-On: OAM-128292 Signed-off-by: Ravichandra Appegowda <[email protected]>
- Loading branch information
1 parent
967a218
commit 8f11b8d
Showing
8 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
type rpmb_mock_data_file, file_type, data_file_type; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# RPMB Mock | ||
/vendor/bin/rpmb_dev u:object_r:rpmb_dev_mock_exec:s0 | ||
/data/vendor/ss(/.*)? u:object_r:rpmb_mock_data_file:s0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
allow init socket_device:sock_file create_file_perms; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
type rpmb_dev_mock, domain; | ||
type rpmb_dev_mock_exec, vendor_file_type, exec_type, file_type; | ||
|
||
init_daemon_domain(rpmb_dev_mock) | ||
|
||
#allow rpmb_dev_mock rpmb_mock_data_file:file create_file_perms; | ||
#allow rpmb_dev_mock rpmb_mock_data_file:dir create_dir_perms; | ||
|
||
allow rpmb_dev_mock mnt_vendor_file:file create_file_perms; | ||
allow rpmb_dev_mock mnt_vendor_file:dir create_dir_perms; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
allow tee socket_device:sock_file rw_file_perms; | ||
allow tee rpmb_mock_data_file:file create_file_perms; | ||
allow tee rpmb_mock_data_file:dir create_dir_perms; | ||
allow tee rpmb_dev_mock:unix_stream_socket connectto; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
vendor_internal_prop(vendor_trusty_storage_prop) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ro.vendor.trusty.storage.fs_ready u:object_r:vendor_trusty_storage_prop:s0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters