blob: 29f19ce2ba7bec702dde8b2ea30601bbc3329225 [file] [log] [blame]
Ravi Kumar Siddojigari54a727d2016-05-26 19:02:15 +05301#copyright (c) 2016, The Linux Foundation. All rights reserved.
2#
3# Redistribution and use in source and binary forms, with or without
4# modification, are permitted provided that the following conditions are
5# met:
6# * Redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer.
8# * Redistributions in binary form must reproduce the above
9# copyright notice, this list of conditions and the following
10# disclaimer in the documentation and/or other materials provided
11# with the distribution.
12# * Neither the name of The Linux Foundation nor the names of its
13# contributors may be used to endorse or promote products derived
14# from this software without specific prior written permission.
15#
16# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
17# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
18# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
19# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
20# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
23# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
25# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
26# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Gao Jie269e9472016-09-19 10:39:58 +080027#
28# Copyright (c) 2015-2016 Dolby Laboratories, Inc. All rights reserved.
29#
30# Redistribution and use in source and binary forms, with or without
31# modification, are permitted provided that the following conditions are
32# met:
33# * Redistributions of source code must retain the above copyright
34# notice, this list of conditions and the following disclaimer.
35# * Redistributions in binary form must reproduce the above
36# copyright notice, this list of conditions and the following
37# disclaimer in the documentation and/or other materials provided
38# with the distribution.
39#
40# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
41# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
42# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
43# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
44# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
45# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
46# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
47# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
48# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
49# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
50# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Ravi Kumar Siddojigari54a727d2016-05-26 19:02:15 +053051
52#mediacodec need intraction with audio device nodes
53allow mediacodec audio_device:chr_file rw_file_perms;
54
Kim Zhang11c78952016-06-03 12:26:59 +080055#allow mediacodec to access adsprpcd
56r_dir_file(mediacodec, adsprpcd_file);
Li Sun78bd98c2017-07-11 18:19:33 +080057r_dir_file(mediacodec, firmware_file);
Deepak Kushwah81294312016-07-13 14:47:53 +053058
59#Allow mediacodec to access proc_net files
60allow mediacodec proc_net:file r_file_perms;
61
Kim Zhang11c78952016-06-03 12:26:59 +080062allow mediacodec system_file:dir r_dir_perms;
63allow mediacodec qdsp_device:chr_file r_file_perms;
Deepak Kushwah81294312016-07-13 14:47:53 +053064
Deepak Kushwahf9d0b752017-07-26 15:14:12 +053065#Allow mediacodec to access service manager wfdnativemm_service
66allow mediacodec wfdnativemm_service:service_manager find;
67hal_client_domain(mediacodec, wifidisplayhalservice)
68
Uma Mehta777d1e22017-08-17 10:17:59 +053069allow mediacodec media_data_file:dir create_dir_perms;
70allow mediacodec media_data_file:file create_file_perms;
71
Gao Jie269e9472016-09-19 10:39:58 +080072# DOLBY_START
Ravi Kumar Siddojigaric7def122017-06-13 00:49:19 +053073#allow mediacodec audioserver_service:service_manager find;
Gao Jie269e9472016-09-19 10:39:58 +080074set_prop(mediacodec, dolby_prop)
75# DOLBY_END
Biswajit Paulf63bd142017-03-16 16:41:02 -070076allow mediacodec debug_gralloc_prop:file r_file_perms;
Vara Prasad A V S G705979d2017-04-21 13:28:58 +053077vndbinder_use(mediacodec);
Li Sun2578ed82017-06-13 10:50:27 +080078hwbinder_use(mediacodec);
79hal_client_domain(mediacodec, hal_vpp)
Deepak Kushwaha3a29142017-08-11 14:56:31 +053080hal_client_domain(mediacodec, hal_perf)