History

misc: fastrpc: check before loading process to the DSP

Reject session if DSP domain is secure, device node is non-secure and signed PD is requested. Secure device node can access DSP without any restriction. Unsigned PD offload is only allowed for the DSP domain that can support unsigned offloading.

Jeya R committed 4 years ago

Commit 7f1f4811 parent 3abe3ab2 files · +50 −0Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/misc/fastrpc.h+17−0
@@ -46,6 +46,23 @@ enum fastrpc_map_flags { · 45 unmodified lines
46 FASTRPC_MAP_MAX,46 FASTRPC_MAP_MAX,
47};47};
48 48
49enum fastrpc_proc_attr {
50 /* Macro for Debug attr */
51 FASTRPC_MODE_DEBUG = (1 << 0),
52 /* Macro for Ptrace */
53 FASTRPC_MODE_PTRACE = (1 << 1),
54 /* Macro for CRC Check */
55 FASTRPC_MODE_CRC = (1 << 2),
56 /* Macro for Unsigned PD */
57 FASTRPC_MODE_UNSIGNED_MODULE = (1 << 3),
58 /* Macro for Adaptive QoS */
59 FASTRPC_MODE_ADAPTIVE_QOS = (1 << 4),
60 /* Macro for System Process */
61 FASTRPC_MODE_SYSTEM_PROCESS = (1 << 5),
62 /* Macro for Prvileged Process */
63 FASTRPC_MODE_PRIVILEGED = (1 << 6),
64};
65
49struct fastrpc_invoke_args {66struct fastrpc_invoke_args {
50 __u64 ptr;67 __u64 ptr;
51 __u64 length;68 __u64 length;