Skip to content

Commit 6a8d9ec

Browse files
authored
Merge pull request #1070 from gyenugul/pd-mapper
pd-mapper: Introduce SELinux domain for pd-mapper
2 parents 8cd34d3 + 0636c25 commit 6a8d9ec

3 files changed

Lines changed: 31 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/usr/bin/pd-mapper -- gen_context(system_u:object_r:pd_mapper_exec_t,s0)
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
## <summary>pd-mapper</summary>
2+
#
3+
## <desc>
4+
## Qualcomm’s pd‑mapper service is the userspace Protection Domain mapper
5+
## that enables applications to access remote processors
6+
## (Wi‑Fi, modem, sensors, etc.)
7+
## on Qualcomm SoCs via the QRTR protocol.
8+
##
9+
## https://github.com/linux-msm/pd-mapper
10+
## </desc>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
policy_module(pd_mapper)
2+
3+
########################################
4+
#
5+
# Declarations
6+
#
7+
8+
type pd_mapper_t;
9+
type pd_mapper_exec_t;
10+
init_daemon_domain(pd_mapper_t, pd_mapper_exec_t)
11+
12+
########################################
13+
#
14+
# Local policy
15+
#
16+
17+
allow pd_mapper_t self:qipcrtr_socket connected_socket_perms;
18+
19+
# Read /sys/devices/platform/soc@0/2a300000.remoteproc/remoteproc/remoteproc2/firmware
20+
dev_read_sysfs(pd_mapper_t)

0 commit comments

Comments
 (0)