1# Copyright (c) 2021 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14type kernel, domain;
15
16# neverallow control for hmcap:supervsable
17# If you add a new authorization "ABC" to hmcap:supervsable, you should:
18#       1) typeattribute      ABC       hmcap_supervsable_xxx_attr;
19#       2) neverallow {hmcap_supervsable_xxx_attr - ABC} ...
20#
21neverallow {domain -hmcap_supervsable_common_attr -hmcap_supervsable_osr_attr
22                   -hmcap_supervsable_container_attr -hmcap_supervsable_platform_attr} self:hmcap {supervsable};
23neverallow {hmcap_supervsable_osr_attr -input_isolate_hap -input_isolate_debug_hap -nativespawn -processdump } self:hmcap {supervsable};
24