Allow domain access to /dev/ion
PATCH 1/1 Allow domain access to /dev/ion
Change-Id: I87f81a632ed61f284f2fe09726f5c4529d36f252
--- domain.te | 3 +++ mediaserver.te | 1 - 2 files changed, 3 insertions(+), 1 deletions(-)
domain.te +3 -0
@@ -83,6 +83,9 @@ allow domain cache_file:lnk_file read; allow domain cgroup:dir { search write }; allow domain cgroup:file w_file_perms; +#Allow access to ion memory allocation device +allow domain ion_device:chr_file rw_file_perms; + # For /sys/qemu_trace files in the emulator. bool in_qemu false; if (in_qemu) {
mediaserver.te +0 -1
@@ -25,7 +25,6 @@ allow mediaserver qemu_device:chr_file rw_file_perms; 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.
A message that is not in the archive (sent off-list or not yet received): E24EB765E1998A40A0C06DE52672C482017B68C84984@staex7mb1.telecom.sna.samsung.com
FYI this patch is relative to aosp/sepolicy.
Quoted 40 lines · William Roberts
Just wanted to get some feedback before submitting this to AOSP. I think everyone is going to need access to this, it seems to be cropping up more and more. I wrestled with r or rw perms on this, but it looks like rw is the way to go IMO.
If this gets a blessing Ill submit upstream....
-----Original Message-----
From: William Roberts [mailto:[email protected]]
Sent: Wednesday, September 12, 2012 2:44 PM
To: [email protected]
Cc: [email protected]; William Roberts
Subject: [PATCH] Allow domain access to/dev/ionChange-Id: I87f81a632ed61f284f2fe09726f5c4529d36f252
--- domain.te | 3 +++ mediaserver.te | 1 - 2 files changed, 3 insertions(+), 1 deletions(-)domain.te +3
-0@@ -83,6 +83,9 @@ allow domain cache_file:lnk_file read; allow domain cgroup:dir { search write }; allow domain cgroup:file w_file_perms; +#Allow access to ion memory allocation device allow domain +ion_device:chr_file rw_file_perms; + # For /sys/qemu_trace files in the emulator. bool in_qemu false; if (in_qemu) {mediaserver.te +0
-1@@ -25,7 +25,6 @@ allow mediaserver qemu_device:chr_file rw_file_perms; 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; --1.7.0.4
Signature · 8 lines
Respectfully, William C Roberts -- 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.
Quoted 3 lines · William Roberts
Just wanted to get some feedback before submitting this to AOSP. I think everyone is going to need access to this, it seems to be cropping up more and more. I wrestled with r or rw perms on this, but it looks like rw is the way to go IMO.
If this gets a blessing Ill submit upstream....
Have you looked at the ion driver to see if any of its operations are security-sensitive?
Quoted 37 lines
-----Original Message-----
From: William Roberts [mailto:[email protected]]
Sent: Wednesday, September 12, 2012 2:44 PM
To: [email protected]
Cc: [email protected]; William Roberts
Subject: [PATCH] Allow domain access to/dev/ionChange-Id: I87f81a632ed61f284f2fe09726f5c4529d36f252
--- domain.te | 3 +++ mediaserver.te | 1 - 2 files changed, 3 insertions(+), 1 deletions(-)domain.te +3
-0@@ -83,6 +83,9 @@ allow domain cache_file:lnk_file read; allow domain cgroup:dir { search write }; allow domain cgroup:file w_file_perms; +#Allow access to ion memory allocation device allow domain +ion_device:chr_file rw_file_perms; + # For /sys/qemu_trace files in the emulator. bool in_qemu false; if (in_qemu) {mediaserver.te +0
-1@@ -25,7 +25,6 @@ allow mediaserver qemu_device:chr_file rw_file_perms; 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; --1.7.0.4
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.
No but I can today.
Quoted 58 lines · Stephen Smalley
Quoted 1 line · William Roberts
Just wanted to get some feedback before submitting this to AOSP. I think
everyone is going to need access to this, it seems to be cropping up more and more. I wrestled with r or rw perms on this, but it looks like rw is the way to go IMO.
Quoted 2 lines
If this gets a blessing Ill submit upstream....
Have you looked at the ion driver to see if any of its operations are security-sensitive?
domain.te allow domain cache_file:lnk_file read; allow domain
Quoted 19 lines
-----Original Message-----
From: William Roberts [mailto:[email protected]]
Sent: Wednesday, September 12, 2012 2:44 PM
To: [email protected]
Cc: [email protected]; William Roberts
Subject: [PATCH] Allow domain access to/dev/ionChange-Id: I87f81a632ed61f284f2fe09726f5c4529d36f252
--- domain.te | 3 +++ mediaserver.te | 1 - 2 files changed, 3 insertions(+), 1 deletions(-)domain.te +0
-0@@ -83,6 +83,9 @@ allow domain cache_file:lnk_file read; allow domaincgroup:dir { search write }; allow domain cgroup:file
w_file_perms;mediaserver.te index e124db0..4b299a0
Quoted 8 lines
domain.te +3
-0+#Allow access to ion memory allocation device allow domain +ion_device:chr_file rw_file_perms; + # For /sys/qemu_trace files in the emulator. bool in_qemu false; if (in_qemu) {mediaserver.te index e124db0..4b299a0 renamed from mediaserver.te +0
-0100644
mediaserver.te allow mediaserver qemu_device:chr_file rw_file_perms;
Quoted 3 lines
mediaserver.te +0
-0@@ -25,7 +25,6 @@ allow mediaserver qemu_device:chr_file rw_file_perms;allow mediaserver sysfs:file
rw_file_perms; # XXX Why?mediaserver.te allow mediaserver qemu_device:chr_file rw_file_perms; · line 25
Quoted 1 line
mediaserver.te +0
-0allow mediaserver apk_data_file:file { read getattr }; -allowmediaserver ion_device:chr_file
rw_file_perms;Quoted 6 lines
mediaserver.te +0
-1# To use remote processor allow mediaserver rpmsg_device:chr_file rw_file_perms; --1.7.0.4
--
Stephen Smalley
National Security Agency
Quoted 5 lines · William Roberts
Change-Id: I87f81a632ed61f284f2fe09726f5c4529d36f252
--- domain.te | 3 +++ mediaserver.te | 1 - 2 files changed, 3 insertions(+), 1 deletions(-)
ueventd.grouper.rc assigns mode 0666 to /dev/ion, i.e. world-readable and -writable, so I guess this is fine. At some point we should audit the ion driver code.
Quoted 26 lines
domain.te +3
-0@@ -83,6 +83,9 @@ allow domain cache_file:lnk_file read; allow domain cgroup:dir { search write }; allow domain cgroup:file w_file_perms; +#Allow access to ion memory allocation device +allow domain ion_device:chr_file rw_file_perms; + # For /sys/qemu_trace files in the emulator. bool in_qemu false; if (in_qemu) {mediaserver.te +0
-1@@ -25,7 +25,6 @@ allow mediaserver qemu_device:chr_file rw_file_perms; 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 · 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.