1c1ed15f1Sopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd.
2c1ed15f1Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3c1ed15f1Sopenharmony_ci# you may not use this file except in compliance with the License.
4c1ed15f1Sopenharmony_ci# You may obtain a copy of the License at
5c1ed15f1Sopenharmony_ci#
6c1ed15f1Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7c1ed15f1Sopenharmony_ci#
8c1ed15f1Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9c1ed15f1Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10c1ed15f1Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11c1ed15f1Sopenharmony_ci# See the License for the specific language governing permissions and
12c1ed15f1Sopenharmony_ci# limitations under the License.
13c1ed15f1Sopenharmony_ci
14c1ed15f1Sopenharmony_cideveloper_only(`
15c1ed15f1Sopenharmony_ci(allow sh aa (process (transition siginh rlimitinh)))
16c1ed15f1Sopenharmony_ci(allow sh aa_exec (file (ioctl read getattr map execute open)))
17c1ed15f1Sopenharmony_ci(allow sh bm (process (transition siginh rlimitinh)))
18c1ed15f1Sopenharmony_ci(allow sh bm_exec (file (ioctl read getattr map execute open)))
19c1ed15f1Sopenharmony_ci(allow sh bytrace (process (transition siginh rlimitinh)))
20c1ed15f1Sopenharmony_ci(allow sh bytrace_exec (file (ioctl read getattr map execute open)))
21c1ed15f1Sopenharmony_ci(allow sh data_file (dir (getattr search)))
22c1ed15f1Sopenharmony_ci(allow sh data_log (dir (search)))
23c1ed15f1Sopenharmony_ci(allow sh data_hilogd_file (dir (ioctl read getattr lock open watch watch_reads search)))
24c1ed15f1Sopenharmony_ci(allow sh data_hilogd_file (file (ioctl read getattr lock map open watch watch_reads)))
25c1ed15f1Sopenharmony_ci(allow sh data_local (dir (ioctl read getattr lock open watch watch_reads search)))
26c1ed15f1Sopenharmony_ci(allow sh data_local_tmp (dir (ioctl read write create getattr setattr lock rename open watch watch_reads add_name remove_name reparent search rmdir)))
27c1ed15f1Sopenharmony_ci(allow sh data_local_tmp (file (execute execute_no_trans ioctl read write create getattr setattr lock append map unlink rename open watch watch_reads)))
28c1ed15f1Sopenharmony_ci(allow sh debug_param (file (read map open)))
29c1ed15f1Sopenharmony_ci(allow sh debug_param (parameter_service (set)))
30c1ed15f1Sopenharmony_ci(allow sh dev_console_file (chr_file (read write getattr)))
31c1ed15f1Sopenharmony_ci(allow sh dev_file (dir (search)))
32c1ed15f1Sopenharmony_ci(allow sh dev_null_file (chr_file (read write open)))
33c1ed15f1Sopenharmony_ci(allow sh dev_parameters_file (dir (search)))
34c1ed15f1Sopenharmony_ci(allow sh dev_parameters_file (file (ioctl read getattr lock map open watch watch_reads)))
35c1ed15f1Sopenharmony_ci(allow sh dev_unix_file (dir (search)))
36c1ed15f1Sopenharmony_ci(allow sh dev_unix_socket (dir (search)))
37c1ed15f1Sopenharmony_ci(allow sh developtools_hdc_control_param (file (read map open)))
38c1ed15f1Sopenharmony_ci(allow sh devpts (chr_file (ioctl read write getattr)))
39c1ed15f1Sopenharmony_ci(allow sh domain (dir (getattr search)))
40c1ed15f1Sopenharmony_ci(allow sh domain (file (read open)))
41c1ed15f1Sopenharmony_ci(allow sh domain (process (getattr)))
42c1ed15f1Sopenharmony_ci(allow sh edm (process (transition getattr siginh rlimitinh)))
43c1ed15f1Sopenharmony_ci(allow sh edm_exec (file (getattr read ioctl open map execute)))
44c1ed15f1Sopenharmony_ci(allow sh etc_file (lnk_file (read)))
45c1ed15f1Sopenharmony_ci(allow sh hdcd (fd (use)))
46c1ed15f1Sopenharmony_ci(allow sh hdcd (fifo_file (ioctl read write)))
47c1ed15f1Sopenharmony_ci(allow sh hdcd (unix_stream_socket (read write)))
48c1ed15f1Sopenharmony_ci(allow sh hidumper (process (transition siginh rlimitinh)))
49c1ed15f1Sopenharmony_ci(allow sh hidumper_exec (file (ioctl read getattr map execute open)))
50c1ed15f1Sopenharmony_ci(allow sh hilog_control_socket (sock_file (write)))
51c1ed15f1Sopenharmony_ci(allow sh hilog_exec (file (read getattr map execute open execute_no_trans)))
52c1ed15f1Sopenharmony_ci(allow sh hilog_input_socket (sock_file (write)))
53c1ed15f1Sopenharmony_ci(allow sh hilog_output_socket (sock_file (write)))
54c1ed15f1Sopenharmony_ci(allow sh hilog_param (file (read map open)))
55c1ed15f1Sopenharmony_ci(allow sh hilog_param (parameter_service (set)))
56c1ed15f1Sopenharmony_ci(allow sh hilogd (unix_dgram_socket (sendto)))
57c1ed15f1Sopenharmony_ci(allow sh hilogd (unix_stream_socket (connectto)))
58c1ed15f1Sopenharmony_ci(allow sh hiperf (process (transition siginh rlimitinh)))
59c1ed15f1Sopenharmony_ci(allow sh hiperf_exec (file (ioctl read getattr map execute open)))
60c1ed15f1Sopenharmony_ci(allow sh hiprofiler_cmd (process (transition siginh rlimitinh)))
61c1ed15f1Sopenharmony_ci(allow sh hiprofiler_cmd_exec (file (ioctl read getattr map execute open)))
62c1ed15f1Sopenharmony_ci(allow sh hisysevent (process (transition siginh rlimitinh)))
63c1ed15f1Sopenharmony_ci(allow sh hisysevent_exec (file (ioctl read getattr map execute open)))
64c1ed15f1Sopenharmony_ci(allow sh hitrace (process (transition siginh rlimitinh)))
65c1ed15f1Sopenharmony_ci(allow sh hitrace_exec (file (ioctl read getattr map execute open)))
66c1ed15f1Sopenharmony_ci(allow sh kernel (unix_stream_socket (connectto)))
67c1ed15f1Sopenharmony_ci(allow sh lib_file (lnk_file (read)))
68c1ed15f1Sopenharmony_ci(allow sh paramservice_socket (sock_file (write)))
69c1ed15f1Sopenharmony_ci(allow sh proc_file (dir (read getattr open search)))
70c1ed15f1Sopenharmony_ci(allow sh proc_file (lnk_file (read getattr)))
71c1ed15f1Sopenharmony_ci(allow sh proc_net (file (read open getattr)))
72c1ed15f1Sopenharmony_ci(allow sh processdump (process (transition sigchld share siginh rlimitinh)))
73c1ed15f1Sopenharmony_ci(allow sh processdump_exec (file (ioctl read getattr map execute open)))
74c1ed15f1Sopenharmony_ci(allow sh rootfs (dir (search)))
75c1ed15f1Sopenharmony_ci(allow sh rootfs (lnk_file (read)))
76c1ed15f1Sopenharmony_ci(allow sh self (dir (ioctl read getattr lock open watch watch_reads search)))
77c1ed15f1Sopenharmony_ci(allow sh self (fd (use)))
78c1ed15f1Sopenharmony_ci(allow sh self (fifo_file (ioctl read write getattr lock append map open watch watch_reads)))
79c1ed15f1Sopenharmony_ci(allow sh self (file (ioctl read write getattr lock append map open watch watch_reads)))
80c1ed15f1Sopenharmony_ci(allow sh self (lnk_file (ioctl read getattr lock map open watch watch_reads)))
81c1ed15f1Sopenharmony_ci(allow sh self (process (fork sigchld sigkill sigstop signull signal getsched setsched getsession getpgid setpgid getcap setcap getattr setrlimit)))
82c1ed15f1Sopenharmony_ci(allow sh self (unix_dgram_socket (write create connect)))
83c1ed15f1Sopenharmony_ci(allow sh self (unix_stream_socket (read write create connect setopt)))
84c1ed15f1Sopenharmony_ci(allow sh selinuxfs (filesystem (getattr)))
85c1ed15f1Sopenharmony_ci(allow sh servicectrl_reboot_param (parameter_service (set)))
86c1ed15f1Sopenharmony_ci(allow sh sh_exec (file (read getattr map execute open entrypoint)))
87c1ed15f1Sopenharmony_ci(allow sh sys_file (dir (search)))
88c1ed15f1Sopenharmony_ci(allow sh system_bin_file (dir (read getattr open search)))
89c1ed15f1Sopenharmony_ci(allow sh system_bin_file (file (read getattr map execute open execute_no_trans)))
90c1ed15f1Sopenharmony_ci(allow sh system_bin_file (lnk_file (read)))
91c1ed15f1Sopenharmony_ci(allow sh toybox_exec (file (read getattr map execute open execute_no_trans)))
92c1ed15f1Sopenharmony_ci(allow sh toybox_exec (lnk_file (read)))
93c1ed15f1Sopenharmony_ci(allow sh system_etc_file (dir (search)))
94c1ed15f1Sopenharmony_ci(allow sh system_etc_file (file (read getattr open map)))
95c1ed15f1Sopenharmony_ci(allow sh sysfs_net (dir (search)))
96c1ed15f1Sopenharmony_ci(allow sh sysfs_net (lnk_file (read)))
97c1ed15f1Sopenharmony_ci(allow sh proc_net_tcp_udp (file (getattr)))
98c1ed15f1Sopenharmony_ci(allow sh system_file (dir (search)))
99c1ed15f1Sopenharmony_ci(allow sh system_lib_file (file (read getattr map execute open)))
100c1ed15f1Sopenharmony_ci(allow sh tty_device (chr_file (ioctl read write getattr open)))
101c1ed15f1Sopenharmony_ci(allow sh vendor_lib_file (dir (search)))
102c1ed15f1Sopenharmony_ci(allow sh time_param (file (read map open)))
103c1ed15f1Sopenharmony_ci(allow sh vendor_file (dir (search)))
104c1ed15f1Sopenharmony_ci(allow sh system_lib_file (dir (search)))
105c1ed15f1Sopenharmony_ci(allow sh hichecker_writable_param (parameter_service (set)))
106c1ed15f1Sopenharmony_ci(allow sh arkui_param (parameter_service (set)))
107c1ed15f1Sopenharmony_ci(allow sh devinfo_public_param (file (map open read)))
108c1ed15f1Sopenharmony_ci(allow sh devinfo_type_param (file (map open read)))
109c1ed15f1Sopenharmony_ci(allow sh ark_profile (parameter_service (set)))
110c1ed15f1Sopenharmony_ci(allow sh ark_writeable_param (parameter_service (set)))
111c1ed15f1Sopenharmony_ci(allow sh SP_daemon (process (transition siginh rlimitinh)))
112c1ed15f1Sopenharmony_ci(allow sh SP_daemon_exec (file (ioctl read getattr map execute open)))
113c1ed15f1Sopenharmony_ci(allow sh atm (process (transition siginh rlimitinh)))
114c1ed15f1Sopenharmony_ci(allow sh atm_exec (file (ioctl read getattr map execute open)))
115c1ed15f1Sopenharmony_ci(allow sh uitest (process (transition siginh rlimitinh sigkill)))
116c1ed15f1Sopenharmony_ci(allow sh uitest_exec (file (ioctl read getattr map execute open)))
117c1ed15f1Sopenharmony_ci(allow sh wukong (process (transition siginh rlimitinh)))
118c1ed15f1Sopenharmony_ci(allow sh wukong_exec (file (ioctl read getattr map execute open)))
119c1ed15f1Sopenharmony_ci(allow sh snapshot_display (process (siginh transition rlimitinh getattr)))
120c1ed15f1Sopenharmony_ci(allow sh snapshot_display_exec (file (read map execute getattr open ioctl)))
121c1ed15f1Sopenharmony_ci(allow sh uinput (process (transition rlimitinh siginh getattr)))
122c1ed15f1Sopenharmony_ci(allow sh uinput_exec (file (open map getattr ioctl read execute)))
123c1ed15f1Sopenharmony_ci(allow sh lldb_server_file (dir (create setattr getattr add_name open write remove_name read search rmdir)))
124c1ed15f1Sopenharmony_ci(allow sh lldb_server_file (file (open unlink create write setattr read getattr append)))
125c1ed15f1Sopenharmony_ci(allow sh power_shell (process (transition siginh rlimitinh getattr)))
126c1ed15f1Sopenharmony_ci(allow sh power_shell_exec (file (open map read ioctl execute getattr)))
127c1ed15f1Sopenharmony_ci(allow sh power_shell (lnk_file (read)))
128c1ed15f1Sopenharmony_ci(allow sh tmpfs (dir (search read open getattr)))
129c1ed15f1Sopenharmony_ci(allow sh hmdfs (dir (search read open getattr add_name create remove_name rename reparent rmdir write)))
130c1ed15f1Sopenharmony_ci(allow sh hmdfs (file (write read map create rename append open getattr unlink)))
131c1ed15f1Sopenharmony_ci(allow sh data_user_file (dir (write read add_name create rename open getattr search remove_name reparent rmdir)))
132c1ed15f1Sopenharmony_ci(allow sh data_user_file (file (write read map create rename append open getattr unlink)))
133c1ed15f1Sopenharmony_ci(allow sh data_file (dir (search)))
134c1ed15f1Sopenharmony_ci(allow sh data_app_file (dir (search)))
135c1ed15f1Sopenharmony_ci(allow sh data_app_el1_file (dir (search)))
136c1ed15f1Sopenharmony_ci(allow sh data_app_el2_file (dir (search)))
137c1ed15f1Sopenharmony_ci(allow sh data_app_el3_file (dir (search)))
138c1ed15f1Sopenharmony_ci(allow sh data_app_el4_file (dir (search)))
139c1ed15f1Sopenharmony_ci(allow sh debug_hap_data_file (dir (search getattr read open)))
140c1ed15f1Sopenharmony_ci(allow sh debug_hap_data_file (file (getattr read open)))
141c1ed15f1Sopenharmony_ci(allow sh system_file (dir (search)))
142c1ed15f1Sopenharmony_ci(allow sh system_fonts_file (dir (getattr search read open)))
143c1ed15f1Sopenharmony_ci(allow sh system_fonts_file (file (getattr read open)))
144c1ed15f1Sopenharmony_ci(allow sh sh (udp_socket (connect create ioctl bind read write)))
145c1ed15f1Sopenharmony_ci(allow sh sh (tcp_socket (connect create setopt getattr read write)))
146c1ed15f1Sopenharmony_ci(allow sh sh (icmp_socket (create setopt write read bind)))
147c1ed15f1Sopenharmony_ci(allow sh sh (rawip_socket (create setopt write read)))
148c1ed15f1Sopenharmony_ci(allow sh dev_random_file (chr_file (read open)))
149c1ed15f1Sopenharmony_ci(allow sh dnsproxy_service (sock_file (read open write)))
150c1ed15f1Sopenharmony_ci(allow sh node (udp_socket (node_bind)))
151c1ed15f1Sopenharmony_ci(allow sh node (icmp_socket (node_bind)))
152c1ed15f1Sopenharmony_ci(allow sh netsysnative (unix_stream_socket (connectto)))
153c1ed15f1Sopenharmony_ci(allow sh proc_net (lnk_file (read)))
154c1ed15f1Sopenharmony_ci(allow sh port (tcp_socket (name_connect)))
155c1ed15f1Sopenharmony_ci(allow sh kernel (key (search)))
156c1ed15f1Sopenharmony_ci(allow sh mediatool (process (getattr rlimitinh transition siginh)))
157c1ed15f1Sopenharmony_ci(allow sh mediatool_exec (file (execute read getattr ioctl map open)))
158c1ed15f1Sopenharmony_ci(allow sh hnp_file (dir (search getattr read open)))
159c1ed15f1Sopenharmony_ci(allow sh hnp_file (file (execute execute_no_trans read getattr map open)))
160c1ed15f1Sopenharmony_ci(allow sh hnp_file (lnk_file (read)))
161c1ed15f1Sopenharmony_ci(allow sh key_enable (key (search)))
162c1ed15f1Sopenharmony_ci(allow sh storage_daemon (key (search)))
163c1ed15f1Sopenharmony_ci(allow sh cem_exec (file (execute map open getattr ioctl read)))
164c1ed15f1Sopenharmony_ci(allow sh cem (process (getattr rlimitinh transition siginh)))
165c1ed15f1Sopenharmony_ci(allow sh devicedebug (process (siginh getattr rlimitinh transition)))
166c1ed15f1Sopenharmony_ci(allow sh devicedebug_exec (file (execute_no_trans open read map getattr execute ioctl)))
167c1ed15f1Sopenharmony_ci(allow sh i18n_param_tz_override (file (map open read)))
168c1ed15f1Sopenharmony_ci(allow sh debug_hap (dir (read open)))
169c1ed15f1Sopenharmony_ci(allow sh proc_stat_file (file (read open)))
170c1ed15f1Sopenharmony_ci(allow sh proc_meminfo_file (file (read open)))
171c1ed15f1Sopenharmony_ci(allow sh sysfs_devices_system_cpu (dir (read open)))
172c1ed15f1Sopenharmony_ci')
173