宏隔离,权限修改

Signed-off-by: y1135885 <yuqigang1@huawei.com>
This commit is contained in:
y1135885 2023-05-26 15:39:05 +08:00
parent 50b4158b24
commit 0b5d438124
4 changed files with 15 additions and 0 deletions

View File

@ -11,6 +11,7 @@
# See the License for the specific language governing permissions and
# limitations under the License
debug_only(`
allow console dev_console_file:chr_file { ioctl read write };
allow console lib_file:lnk_file { read };
allow console system_bin_file:dir { search };
@ -19,3 +20,5 @@ allow console system_bin_file:lnk_file { read };
allow console tty_device:chr_file { ioctl };
allowxperm console dev_console_file:chr_file ioctl { 0x5413 };
allowxperm console tty_device:chr_file ioctl { 0x5403 };
')

View File

@ -11,8 +11,10 @@
# See the License for the specific language governing permissions and
# limitations under the License
debug_only(`
allow hidumper sh:fd { use };
allow hidumper sh:fifo_file { read write };
')
allow hidumper hiprofilerd:fd { use };
allow hidumper hiprofiler_plugins:fd { use };
allow hidumper hiprofiler_plugins:fifo_file { write };

View File

@ -11,9 +11,12 @@
# See the License for the specific language governing permissions and
# limitations under the License
debug_only(`
allow hidumper_service sh:dir { search };
allow hidumper_service sh:fd { use };
allow hidumper_service sh:fifo_file { write };
allow hidumper_service sh:file { open read };
')
allow hidumper_service hiprofiler_plugins:fd { use };
allow hidumper_service hiprofiler_plugins:fifo_file { write };

View File

@ -0,0 +1,7 @@
allow sh musl_param:file { map open };
debug_only(`
allow sh sh:udp_socket { read };
#allow sh system_basic_hap_data_file:dir { open };
allow sh system_basic_hap_data_file:dir { search }
')