Skip to contentSkip to conversation

refpolicy: fix real path for su.shadow

PATCH Applied [email protected] 3 participants 4 messages Feb 13, 2014 – Feb 14, 2014

lore
Share & tools
lore
#0 lore raw

cover refpolicy: fix real path for su.shadow

From: Wenzong Fan <[email protected]>

In yocto the su was linked to /bin/su.shadow, fix the path for it.

The following changes since commit 33e54aa891626c10f7cb865cc263b708c060fc85:

refpolicy: backport two patches to fix dhclient, hostname and ifconfig (2014-02-12 19:45:35 -0500)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib wenzong/fix-su
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=wenzong/fix-su

Wenzong Fan (1):
refpolicy: fix real path for su.shadow

 .../poky-fc-fix-real-path_su.patch                 |   25 ++++++++++++++++++++
 .../refpolicy/refpolicy_2.20130424.inc             |    1 +
 2 files changed, 26 insertions(+)
 create mode 100644 recipes-security/refpolicy/refpolicy-2.20130424/poky-fc-fix-real-path_su.patch
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 refpolicy: fix real path for su.shadow

From: Wenzong Fan <[email protected]>

---
 .../poky-fc-fix-real-path_su.patch                 |   25 ++++++++++++++++++++
 .../refpolicy/refpolicy_2.20130424.inc             |    1 +
 2 files changed, 26 insertions(+)
 create mode 100644 recipes-security/refpolicy/refpolicy-2.20130424/poky-fc-fix-real-path_su.patch
recipes-security/refpolicy/refpolicy-2.20130424/poky-fc-fix-real-path_su.patch new file +25 -0
new file mode 100644
index 0000000..b0392ce
@@ -0,0 +1,25 @@
+From 4affa5e9797f5d51597c9b8e0f2503883c766699 Mon Sep 17 00:00:00 2001
+From: Wenzong Fan <[email protected]>
+Date: Thu, 13 Feb 2014 00:33:07 -0500
+Subject: [PATCH] fix real path for su.shadow command
+
+Upstream-Status: Inappropriate [only for Poky]
+
+Signed-off-by: Wenzong Fan <[email protected]>
+---
+ policy/modules/admin/su.fc |    2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/policy/modules/admin/su.fc b/policy/modules/admin/su.fc
+index a563687..0f43827 100644
+--- a/policy/modules/admin/su.fc
++++ b/policy/modules/admin/su.fc
+@@ -4,3 +4,5 @@
+ 
+ /usr/(local/)?bin/ksu	--	gen_context(system_u:object_r:su_exec_t,s0)
+ /usr/bin/kdesu		--	gen_context(system_u:object_r:su_exec_t,s0)
++
++/bin/su.shadow		--	gen_context(system_u:object_r:su_exec_t,s0)
+-- 
+1.7.9.5
+
recipes-security/refpolicy/refpolicy_2.20130424.inc +1 -0
index 23339e3..9e5e426 100644
@@ -30,6 +30,7 @@ SRC_URI += "file://poky-fc-subs_dist.patch \
             file://poky-fc-udevd.patch \
             file://poky-fc-rpm.patch \
             file://poky-fc-ftpwho-dir.patch \
+            file://poky-fc-fix-real-path_su.patch \
            "
 
 # Specific policy for Poky
Signature · 1 line
1.7.9.5
#2 lore raw
Quoted 46 lines · 于 14-2-13 下午4:09, [email protected] 写道:

From: Wenzong Fan <[email protected]>

---
  .../poky-fc-fix-real-path_su.patch                 |   25 ++++++++++++++++++++
  .../refpolicy/refpolicy_2.20130424.inc             |    1 +
  2 files changed, 26 insertions(+)

create mode 100644 recipes-security/refpolicy/refpolicy-2.20130424/poky-fc-fix-real-path_su.patch

recipes-security/refpolicy/refpolicy-2.20130424/poky-fc-fix-real-path_su.patch new file +25 -0
new file mode 100644
index 0000000..b0392ce
@@ -0,0 +1,25 @@
+From 4affa5e9797f5d51597c9b8e0f2503883c766699 Mon Sep 17 00:00:00 2001
+From: Wenzong Fan <[email protected]>
+Date: Thu, 13 Feb 2014 00:33:07 -0500
+Subject: [PATCH] fix real path for su.shadow command
+
+Upstream-Status: Inappropriate [only for Poky]
+
+Signed-off-by: Wenzong Fan <[email protected]>
+---
+ policy/modules/admin/su.fc |    2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/policy/modules/admin/su.fc b/policy/modules/admin/su.fc
+index a563687..0f43827 100644
+--- a/policy/modules/admin/su.fc
++++ b/policy/modules/admin/su.fc
+@@ -4,3 +4,5 @@
+
+ /usr/(local/)?bin/ksu	--	gen_context(system_u:object_r:su_exec_t,s0)
+ /usr/bin/kdesu		--	gen_context(system_u:object_r:su_exec_t,s0)
++
++/bin/su.shadow		--	gen_context(system_u:object_r:su_exec_t,s0)
+--
+1.7.9.5
+
recipes-security/refpolicy/refpolicy_2.20130424.inc +0 -0
index 23339e3..9e5e426 100644

recipes-security/refpolicy/refpolicy_2.20130424.inc SRC_URI += "file://poky-fc-subs_dist.patch \ · line 36

Quoted 7 lines
recipes-security/refpolicy/refpolicy_2.20130424.inc +1 -0
@@ -30,6 +30,7 @@ SRC_URI += "file://poky-fc-subs_dist.patch \
              file://poky-fc-udevd.patch \
              file://poky-fc-rpm.patch \
              file://poky-fc-ftpwho-dir.patch \
+            file://poky-fc-fix-real-path_su.patch \
             "
 
  # Specific policy for Poky

Acked.

Signature · 1 line
- Pascal
#3 lore raw
In reply to [email protected]

Merged, thanks.
-J.

Quoted 52 lines · [[yocto] [meta-selinux][PATCH 1/1] refpolicy: fix real path for su.shadow] On…

From: Wenzong Fan <[email protected]>

---
 .../poky-fc-fix-real-path_su.patch                 |   25 ++++++++++++++++++++
 .../refpolicy/refpolicy_2.20130424.inc             |    1 +
 2 files changed, 26 insertions(+)
 create mode 100644 recipes-security/refpolicy/refpolicy-2.20130424/poky-fc-fix-real-path_su.patch
recipes-security/refpolicy/refpolicy-2.20130424/poky-fc-fix-real-path_su.patch new file +25 -0
new file mode 100644
index 0000000..b0392ce
@@ -0,0 +1,25 @@
+From 4affa5e9797f5d51597c9b8e0f2503883c766699 Mon Sep 17 00:00:00 2001
+From: Wenzong Fan <[email protected]>
+Date: Thu, 13 Feb 2014 00:33:07 -0500
+Subject: [PATCH] fix real path for su.shadow command
+
+Upstream-Status: Inappropriate [only for Poky]
+
+Signed-off-by: Wenzong Fan <[email protected]>
+---
+ policy/modules/admin/su.fc |    2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/policy/modules/admin/su.fc b/policy/modules/admin/su.fc
+index a563687..0f43827 100644
+--- a/policy/modules/admin/su.fc
++++ b/policy/modules/admin/su.fc
+@@ -4,3 +4,5 @@
+ 
+ /usr/(local/)?bin/ksu	--	gen_context(system_u:object_r:su_exec_t,s0)
+ /usr/bin/kdesu		--	gen_context(system_u:object_r:su_exec_t,s0)
++
++/bin/su.shadow		--	gen_context(system_u:object_r:su_exec_t,s0)
+-- 
+1.7.9.5
+
recipes-security/refpolicy/refpolicy_2.20130424.inc +1 -0
index 23339e3..9e5e426 100644
@@ -30,6 +30,7 @@ SRC_URI += "file://poky-fc-subs_dist.patch \
             file://poky-fc-udevd.patch \
             file://poky-fc-rpm.patch \
             file://poky-fc-ftpwho-dir.patch \
+            file://poky-fc-fix-real-path_su.patch \
            "
 
 # Specific policy for Poky
Signature · 2 lines
-Joe MacDonald.
:wq