From caa6a32d76e22b350f58ee6cf35c95f6282f076e Mon Sep 17 00:00:00 2001 From: Nick Kralevich <nnk@google.com> Date: Sun, 15 Dec 2013 12:50:00 -0800 Subject: [PATCH] initial inputflinger domain Add a placeholder domain for inputflinger. Mark it initially unconfined and enforcing. Change-Id: I433fd9e1954486136cb8abb084b4e19bb7fc2f19 --- file_contexts | 1 + inputflinger.te | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 inputflinger.te diff --git a/file_contexts b/file_contexts index 45823ef38..25873049b 100644 --- a/file_contexts +++ b/file_contexts @@ -145,6 +145,7 @@ /system/bin/hostapd u:object_r:hostapd_exec:s0 /system/bin/clatd u:object_r:clatd_exec:s0 /system/bin/lmkd u:object_r:lmkd_exec:s0 +/system/bin/inputflinger u:object_r:inputflinger_exec:s0 ############################# # Vendor files # diff --git a/inputflinger.te b/inputflinger.te new file mode 100644 index 000000000..243bee3d1 --- /dev/null +++ b/inputflinger.te @@ -0,0 +1,9 @@ +# inputflinger +type inputflinger, domain; +type inputflinger_exec, exec_type, file_type; + +init_daemon_domain(inputflinger) +binder_use(inputflinger) +binder_service(inputflinger) + +unconfined_domain(inputflinger) -- GitLab