# Copyright (c) 2023 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. debug_only(` # avc: denied { getattr } for pid=1388 comm="ps" scontext=u:r:sh:s0 tcontext=u:r:av_codec_service:s0 tclass=process permissive=1 allow sh av_codec_service:process { getattr }; allow sh av_codec_service:binder { call transfer }; allow sh av_codec_service:dir { getattr search }; allow sh av_codec_service:file { open read }; allow sh sa_av_codec_service:samgr_class { get }; allow sh av_codec_service:fd { use }; allow sh hdf_allocator_service:hdf_devmgr_class { get }; # avc: denied { write } for pid=1459 comm="av_codec_demo" name="kmsg" dev="tmpfs" ino=6 scontext=u:r:sh:s0 tcontext=u:object_r:dev_kmsg_file:s0 tclass=chr_file permissive=1 allow sh dev_kmsg_file:chr_file { write }; # avc: denied { signal } for pid=821 comm="sh" scontext=u:r:sh:s0 tcontext=u:r:av_codec_service:s0 tclass=process permissive=1 allow sh av_codec_service:process { signal }; ')