paradetech: Add policy file for arm64 platform
This CL adds support for Parade Technologies Touch firmware updater
to check the version and upgrade the firmware on arm64 platform.
BUG=b:420388931
TEST=/opt/google/touch/scripts/chromeos-touch-update.sh
TEST=The update process was verified to check the firmware version
and to successfully apply the upgrade.
Change-Id: I99f507658e2d355ab603b53886e1f35a777db84a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/touch_updater/+/6587526
Tested-by: Daniel Duan <daniel.duan@paradetech.corp-partner.google.com>
Reviewed-by: Henry Barnor <hbarnor@chromium.org>
Commit-Queue: Daniel Duan <daniel.duan@paradetech.corp-partner.google.com>
Reviewed-by: Jingyuan Liang <jingyliang@chromium.org>
diff --git a/policies/arm64/paradetech.query.policy b/policies/arm64/paradetech.query.policy
new file mode 100644
index 0000000..55b86fb
--- /dev/null
+++ b/policies/arm64/paradetech.query.policy
@@ -0,0 +1,44 @@
+# Copyright 2025 The ChromiumOS Authors
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# Policy file for Paradetech touchscreen tools.
+# It is used to get firmware version.
+
+rseq: 1
+close: 1
+brk: 1
+clock_nanosleep: 1
+# pthread_create() function is used to capture data of hidraw node,
+# it's necessary for basic communication
+clone: 1
+dup: 1
+dup3: 1
+exit: 1
+exit_group: 1
+faccessat: 1
+fstat: 1
+fstatfs: 1
+futex: 1
+getrandom: arg2 in ~GRND_RANDOM
+# ioctl:
+# TCGETS: 0x5401
+ioctl: arg1 == 0x5401
+lseek: 1
+madvise: 1
+mmap: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE
+mprotect: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE
+munmap: 1
+newfstatat: 1
+openat: 1
+pipe2: 1
+prlimit64: 1
+pselect6: 1
+read: 1
+restart_syscall: 1
+rt_sigaction: 1
+rt_sigprocmask: 1
+rt_sigreturn: 1
+set_robust_list: 1
+set_tid_address: 1
+write: 1
diff --git a/policies/arm64/paradetech.update.policy b/policies/arm64/paradetech.update.policy
new file mode 100644
index 0000000..92587bd
--- /dev/null
+++ b/policies/arm64/paradetech.update.policy
@@ -0,0 +1,46 @@
+# Copyright 2025 The ChromiumOS Authors
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# Policy file for Paradetech touchscreen tools.
+# It is used to update firmware.
+
+rseq: 1
+brk: 1
+clock_nanosleep: 1
+# pthread_create() function is used to capture data of hidraw node,
+# it's necessary for basic communication
+clone: 1
+close: 1
+dup: 1
+dup3: 1
+exit: 1
+exit_group: 1
+faccessat: 1
+fstat: 1
+fstatfs: 1
+futex: 1
+getrandom: arg2 in ~GRND_RANDOM
+# ioctl:
+# TCGETS: 0x5401
+# HIDIOCGRDESCSIZE: 0x80044801
+# HIDIOCGRAWINFO: 0x80084803
+ioctl: arg1 == 0x5401 || arg1 == 0x80084803 || arg1 == 0x80044801
+lseek: 1
+madvise: 1
+mmap: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE
+mprotect: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE
+munmap: 1
+newfstatat: 1
+openat: 1
+pipe2: 1
+prlimit64: 1
+pselect6: 1
+read: 1
+restart_syscall: 1
+rt_sigaction: 1
+rt_sigprocmask: 1
+rt_sigreturn: 1
+set_robust_list: 1
+set_tid_address: 1
+write: 1