Skip to contentSkip to conversation

installd unlink platform_app_data_file

PATCH In review Haiqing Jiang 2 participants 3 messages Jul 27, 2012 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 installd unlink platform_app_data_file

---
 installd.te |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
installd.te +2 -1
index ce9122b..a2c7bb4 100644
@@ -20,5 +20,6 @@ dontaudit installd self:capability sys_admin;
 selinux_check_context(installd)
 # Read /seapp_contexts, presently on the rootfs.
 allow installd rootfs:file r_file_perms;
-# Unlink app_data_file
+# Unlink app_data_file and platform_app_data_file
 allow installd app_data_file:lnk_file unlink;
+allow installd platform_app_data_file:lnk_file unlink;
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.
#1 lore raw
Quoted 9 lines · Haiqing Jiang
---
 installd.te |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
installd.te +0 -0
index ce9122b..a2c7bb4 100644

installd.te dontaudit installd self:capability sys_admin; · line 25

Quoted 7 lines
installd.te +2 -1
@@ -20,5 +20,6 @@ dontaudit installd self:capability sys_admin;
 selinux_check_context(installd)
 # Read /seapp_contexts, presently on the rootfs.
 allow installd rootfs:file r_file_perms;
-# Unlink app_data_file
+# Unlink app_data_file and platform_app_data_file
 allow installd app_data_file:lnk_file unlink;
+allow installd platform_app_data_file:lnk_file unlink;

Just add lnk_file to the earlier rule for data_file_type and drop these two rules altogether.

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.
#2 lore raw

Could you update the patch to branches? Thanks.

Quoted 26 lines · Stephen Smalley
Quoted 9 lines · Haiqing Jiang
---
 installd.te |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
installd.te +0 -0
index ce9122b..a2c7bb4 100644

installd.te dontaudit installd self:capability sys_admin; · line 25

Quoted 7 lines
installd.te +2 -1
@@ -20,5 +20,6 @@ dontaudit installd self:capability sys_admin;
 selinux_check_context(installd)
 # Read /seapp_contexts, presently on the rootfs.
 allow installd rootfs:file r_file_perms;
-# Unlink app_data_file
+# Unlink app_data_file and platform_app_data_file
 allow installd app_data_file:lnk_file unlink;
+allow installd platform_app_data_file:lnk_file unlink;

Just add lnk_file to the earlier rule for data_file_type and drop these two rules altogether.

--
Stephen Smalley
National Security Agency

Signature · 4 lines
-----------------------------------
Haiqing Jiang, PH.D student

Computer Science Department, North Carolina State University