diff options
author | yongga <yongga@codeaurora.org> | 2016-01-15 16:09:03 +0800 |
---|---|---|
committer | Harshal Trivedi <htrivedi@codeaurora.org> | 2016-01-25 15:08:23 -0800 |
commit | ec8c991dfaba6c1a52d53d2940c635206f795c11 (patch) | |
tree | 423b0a49c76d1803f241ac89dfe9b1d5e70b1f80 | |
parent | 35db533935079980dec73f43cb231fa5dd15d2da (diff) | |
download | android_device_qcom_sepolicy-ec8c991dfaba6c1a52d53d2940c635206f795c11.tar.gz android_device_qcom_sepolicy-ec8c991dfaba6c1a52d53d2940c635206f795c11.tar.bz2 android_device_qcom_sepolicy-ec8c991dfaba6c1a52d53d2940c635206f795c11.zip |
SELINUX: Add BootUp Music Permission
Add the bootup music permissoin
Change-Id: Ia4200c06f88d7abaf1b19a4aa9fbe51930a101da
CRs-Fixed: 943280
-rw-r--r-- | common/bootanim.te | 29 | ||||
-rw-r--r-- | common/mediaserver.te | 3 |
2 files changed, 32 insertions, 0 deletions
diff --git a/common/bootanim.te b/common/bootanim.te new file mode 100644 index 00000000..be7b9ed9 --- /dev/null +++ b/common/bootanim.te @@ -0,0 +1,29 @@ +# Copyright (c) 2016, The Linux Foundation. All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are +# met: +# * Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# * Redistributions in binary form must reproduce the above +# copyright notice, this list of conditions and the following +# disclaimer in the documentation and/or other materials provided +# with the distribution. +# * Neither the name of The Linux Foundation nor the names of its +# contributors may be used to endorse or promote products derived +# from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT +# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS +# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR +# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE +# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +# allow bootanim to binder mediaserver +binder_call(bootanim, mediaserver); diff --git a/common/mediaserver.te b/common/mediaserver.te index 2e412682..27281424 100644 --- a/common/mediaserver.te +++ b/common/mediaserver.te @@ -67,6 +67,9 @@ r_dir_file(mediaserver, adsprpcd_file); #Allow mediaserver to connect to unix sockets for staproxy service allow mediaserver system_app:unix_stream_socket { connectto read write setopt }; +# allow mediaserver to communicate with bootanim +binder_call(mediaserver, bootanim); + #Allow mediaserver to access service manager STAProxyService #Allow mediaserver to access service manager wfdservice allow mediaserver { STAProxyService wfdservice_service }:service_manager find; |