Skip to contentSkip to conversation

correct denies of inter system processes communication over named pipe

PATCH New hqjiang 2 participants 3 messages Jul 11, 2012 – Jul 12, 2012 SELinux security module

lore
Share & tools
lore

hqjiang

author
#0 lore raw

PATCH 1/1 correct denies of inter system processes communication over named pipe

---
 mediaserver.te |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
mediaserver.te +3 -0
index 97f8e5d..c6af603 100644
@@ -28,3 +28,6 @@ allow mediaserver ion_device:chr_file rw_file_perms;
 
 # To use remote processor
 allow mediaserver rpmsg_device:chr_file rw_file_perms;
+
+# Inter System processes communicate over named pipe (FIFO)
+allow mediaserver system:fifo_file r_file_perms;
Signature · 7 lines
1.7.0.4


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
author
#1 lore raw

PATCH 1/1 Correct denies of rpmsg device when accessing to remote processors.

---
 device.te      |    4 ++++
 file_contexts  |    2 ++
 mediaserver.te |    3 +++
 3 files changed, 9 insertions(+), 0 deletions(-)
device.te +4 -0
index 9fc4d18..c9098e9 100644
@@ -46,3 +46,7 @@ type gps_device, dev_type;
 # varies per device. This type
 # is used in per device policy
 type hci_attach_dev, dev_type;
+
+# All devices have a rpmsg device for 
+# achieving remoteproc and rpmsg modules
+type rpmsg_device, dev_type;
file_contexts +2 -0
index 72c95a5..f88865d 100644
@@ -47,6 +47,8 @@
 /dev/nvmap		u:object_r:nv_device:s0
 /dev/nvhost-.*		u:object_r:nv_device:s0
 /dev/random		u:object_r:random_device:s0
+/dev/rpmsg-omx[0-9]	u:object_r:rpmsg_device:s0
+/dev/rproc_user	u:object_r:rpmsg_device:s0
 /dev/s3c-jpg		u:object_r:camera_device:s0
 /dev/s3c-mem		u:object_r:camera_device:s0
 /dev/s3c-mfc		u:object_r:graphics_device:s0
mediaserver.te +3 -0
index 8236c79..97f8e5d 100644
@@ -25,3 +25,6 @@ allow mediaserver sysfs:file rw_file_perms;
 # XXX Why?
 allow mediaserver apk_data_file:file { read getattr };
 allow mediaserver ion_device:chr_file rw_file_perms;
+
+# To use remote processor
+allow mediaserver rpmsg_device:chr_file rw_file_perms;
Signature · 7 lines
1.7.0.4


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#2 lore raw

Re: [PATCH] Correct denies of rpmsg device when accessing to remote processors.

Quoted 5 lines · hqjiang
---
 device.te      |    4 ++++
 file_contexts  |    2 ++
 mediaserver.te |    3 +++
 3 files changed, 9 insertions(+), 0 deletions(-)

Merged on seandroid branch. However, when submitting patches:
- if they are relative to one another, then number them, e.g. [PATCH 1/2], [PATCH 2/2] to make the order explicit,
- identify the target directory in which to apply the patch, e.g. [PATCH 1/2 external/sepolicy].
- if branch-specific, identify the target branch(es), e.g. master vs 4.0.4 vs 4.1.1.
- Make the subject line shorter and include a longer patch description in the body before the -- and diffstat output.

Using git format-patch to generate the patch or git send-email might make life easier for you.

Signature · 8 lines
Stephen Smalley
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.