添加权限

1.  device/mediatek/sepolicy/bsp/non_plat/file.te

type proc_along_camerainfo, fs_type, proc_type;
type proc_along_lcminfo, fs_type, proc_type;
type proc_along_tpinfo, fs_type, proc_type;

2. device/mediatek/sepolicy/bsp/non_plat/genfs_contexts

genfscon proc /along_camerainfo u:object_r:proc_along_camerainfo:s0
genfscon proc /along_lcminfo u:object_r:proc_along_lcminfo:s0
genfscon proc /along_tpinfo u:object_r:proc_along_tpinfo:s0

3. device/mediatek/sepolicy/bsp/non_plat/system_app.te

allow system_app proc_along_camerainfo:file { read getattr open };
allow system_app proc_along_lcminfo:file { read getattr open };
allow system_app proc_along_tpinfo:file { read getattr open };

你可能感兴趣的:(添加权限)