From 4bdff782ebbd24cb6c24176d576e1ab73d0fc487 Mon Sep 17 00:00:00 2001 From: richagar Date: Fri, 21 Jun 2019 19:48:37 +0530 Subject: [PATCH] Adding self kill capability for perf hal Allow perf for self kill capability Change-Id: I88c24af42e87112a2abeb3efe1656871cccf6751 --- legacy/vendor/common/hal_perf_default.te | 3 +++ qva/vendor/common/hal_perf_default.te | 3 +++ 2 files changed, 6 insertions(+) diff --git a/legacy/vendor/common/hal_perf_default.te b/legacy/vendor/common/hal_perf_default.te index 2df8b6bf..6784270c 100644 --- a/legacy/vendor/common/hal_perf_default.te +++ b/legacy/vendor/common/hal_perf_default.te @@ -89,3 +89,6 @@ allow hal_perf { sysfs_scsi_host sysfs_kgsl }:lnk_file r_file_perms; + +# Allow to self kill capability +allow hal_perf_default self:capability { kill }; diff --git a/qva/vendor/common/hal_perf_default.te b/qva/vendor/common/hal_perf_default.te index 267a50b0..2cc4e076 100644 --- a/qva/vendor/common/hal_perf_default.te +++ b/qva/vendor/common/hal_perf_default.te @@ -91,3 +91,6 @@ allow hal_perf { sysfs_scsi_host sysfs_kgsl }:lnk_file r_file_perms; + +# Allow to self kill capability +allow hal_perf_default self:capability { kill };