Merge "sepolicy: allow camera process to access synx device node"

This commit is contained in:
qctecmdr Service 2019-03-23 02:57:04 -07:00 committed by Gerrit - the friendly Code Review server
commit b2970fc5c0
3 changed files with 6 additions and 1 deletions

View file

@ -1,4 +1,4 @@
# Copyright (c) 2018, The Linux Foundation. All rights reserved.
# Copyright (c) 2018-2019, 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
@ -56,5 +56,6 @@ type smd_device, dev_type;
type spcom_device, dev_type;
type ssd_block_device, dev_type;
type ssr_device, dev_type;
type synx_device, dev_type;
type wlan_device, dev_type;
type xbl_block_device, dev_type;

View file

@ -66,6 +66,7 @@
/dev/citadel0 u:object_r:citadel_device:s0
/dev/jdi-bu21150 u:object_r:bu21150_device:s0
/dev/usb_ext_chg u:object_r:hvdcp_device:s0
/dev/synx_device u:object_r:synx_device:s0
# dev socket nodes
/dev/socket/chre u:object_r:chre_socket:s0

View file

@ -50,6 +50,9 @@ userdebug_or_eng(`
# access hexagon
allow hal_camera qdsp_device:chr_file r_file_perms;
#Allow camera to access synx device
allow hal_camera synx_device:chr_file rw_file_perms;
#needed for full_treble
hal_client_domain(hal_camera_default, hal_graphics_composer)