summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWenzong Fan <wenzong.fan@windriver.com>2013-12-31 04:06:18 -0500
committerMark Hatle <mark.hatle@windriver.com>2014-01-10 14:13:44 -0600
commit9bd03e1bddb9348656d368a19fb6b57e94073847 (patch)
treeef0c213ad04e13a7b27277f12d9cd7c93c0378c0
parentf04f030a1d19089580deb9905b0b24aaf53be750 (diff)
downloadmeta-selinux-9bd03e1bddb9348656d368a19fb6b57e94073847.tar.gz
libsemanage: migrate SRC_URI to 2.2
Updated patch: - libsemanage-fix-path-nologin.patch Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
-rw-r--r--recipes-security/selinux/libsemanage/libsemanage-fix-path-nologin.patch9
-rw-r--r--recipes-security/selinux/libsemanage_2.2.bb6
-rw-r--r--recipes-security/selinux/libsemanage_git.bb3
3 files changed, 10 insertions, 8 deletions
diff --git a/recipes-security/selinux/libsemanage/libsemanage-fix-path-nologin.patch b/recipes-security/selinux/libsemanage/libsemanage-fix-path-nologin.patch
index 7ce586b..5fc1e17 100644
--- a/recipes-security/selinux/libsemanage/libsemanage-fix-path-nologin.patch
+++ b/recipes-security/selinux/libsemanage/libsemanage-fix-path-nologin.patch
@@ -6,12 +6,13 @@ shadow package of oe-core and Debian has installed nologin into
6Upstream-Status: Inappropriate [configuration] 6Upstream-Status: Inappropriate [configuration]
7 7
8Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com> 8Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
9Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
9--- 10---
10 src/genhomedircon.c | 4 ++-- 11 src/genhomedircon.c | 4 ++--
11 1 file changed, 2 insertions(+), 2 deletions(-) 12 1 file changed, 2 insertions(+), 2 deletions(-)
12 13
13diff --git a/src/genhomedircon.c b/src/genhomedircon.c 14diff --git a/src/genhomedircon.c b/src/genhomedircon.c
14index 262a6cd..a50e03d 100644 15index f3b9b5c..4f4865a 100644
15--- a/src/genhomedircon.c 16--- a/src/genhomedircon.c
16+++ b/src/genhomedircon.c 17+++ b/src/genhomedircon.c
17@@ -58,7 +58,7 @@ 18@@ -58,7 +58,7 @@
@@ -23,12 +24,12 @@ index 262a6cd..a50e03d 100644
23 24
24 /* comments written to context file */ 25 /* comments written to context file */
25 #define COMMENT_FILE_CONTEXT_HEADER "#\n#\n# " \ 26 #define COMMENT_FILE_CONTEXT_HEADER "#\n#\n# " \
26@@ -392,7 +392,7 @@ static semanage_list_t *get_home_dirs(genhomedircon_settings_t * s) 27@@ -393,7 +393,7 @@ static semanage_list_t *get_home_dirs(genhomedircon_settings_t * s)
27 28
28 /* NOTE: old genhomedircon printed a warning on match */ 29 /* NOTE: old genhomedircon printed a warning on match */
29 if (hand.matched) { 30 if (hand.matched) {
30- WARN(s->h_semanage, "%s homedir %s or its parent directory conflicts with a file context already specified in the policy. This usually indicates an incorrectly defined system account. If it is a system account please make sure its uid is less than %u or its login shell is /sbin/nologin.", pwbuf->pw_name, pwbuf->pw_dir, minuid); 31- WARN(s->h_semanage, "%s homedir %s or its parent directory conflicts with a file context already specified in the policy. This usually indicates an incorrectly defined system account. If it is a system account please make sure its uid is less than %u or greater than %u or its login shell is /sbin/nologin.", pwbuf->pw_name, pwbuf->pw_dir, minuid, maxuid);
31+ WARN(s->h_semanage, "%s homedir %s or its parent directory conflicts with a file context already specified in the policy. This usually indicates an incorrectly defined system account. If it is a system account please make sure its uid is less than %u or its login shell is /usr/sbin/nologin.", pwbuf->pw_name, pwbuf->pw_dir, minuid); 32+ WARN(s->h_semanage, "%s homedir %s or its parent directory conflicts with a file context already specified in the policy. This usually indicates an incorrectly defined system account. If it is a system account please make sure its uid is less than %u or greater than %u or its login shell is /usr/sbin/nologin.", pwbuf->pw_name, pwbuf->pw_dir, minuid, maxuid);
32 } else { 33 } else {
33 if (semanage_list_push(&homedir_list, path)) 34 if (semanage_list_push(&homedir_list, path))
34 goto fail; 35 goto fail;
diff --git a/recipes-security/selinux/libsemanage_2.2.bb b/recipes-security/selinux/libsemanage_2.2.bb
index 900d608..4ee93c0 100644
--- a/recipes-security/selinux/libsemanage_2.2.bb
+++ b/recipes-security/selinux/libsemanage_2.2.bb
@@ -1,12 +1,12 @@
1PR = "r0" 1PR = "r0"
2 2
3include selinux_20130423.inc 3include selinux_20131030.inc
4include ${BPN}.inc 4include ${BPN}.inc
5 5
6LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343" 6LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343"
7 7
8SRC_URI[md5sum] = "44fc8a3387486378a21d8df7454b9d42" 8SRC_URI[md5sum] = "2a939538645de6023633bc2247a5e72e"
9SRC_URI[sha256sum] = "de2e8077245581e94576276f54e80a53c23c28d6961d2dfbe2f004eaba452e91" 9SRC_URI[sha256sum] = "11f60bfa0f1c6063cd9bd99ce0cb4acc9d6d9e9b8d7743d39e847bcd7803bd75"
10 10
11SRC_URI += "\ 11SRC_URI += "\
12 file://libsemanage-Fix-execve-segfaults-on-Ubuntu.patch \ 12 file://libsemanage-Fix-execve-segfaults-on-Ubuntu.patch \
diff --git a/recipes-security/selinux/libsemanage_git.bb b/recipes-security/selinux/libsemanage_git.bb
index 6553c6b..c3799fd 100644
--- a/recipes-security/selinux/libsemanage_git.bb
+++ b/recipes-security/selinux/libsemanage_git.bb
@@ -1,5 +1,5 @@
1PR = "r0" 1PR = "r0"
2PV = "2.1.10+git${SRCPV}" 2PV = "2.2+git${SRCPV}"
3 3
4include selinux_git.inc 4include selinux_git.inc
5include ${BPN}.inc 5include ${BPN}.inc
@@ -11,4 +11,5 @@ SRC_URI += "\
11 file://libsemanage-fix-path-len-limit.patch \ 11 file://libsemanage-fix-path-len-limit.patch \
12 file://libsemanage-fix-path-nologin.patch \ 12 file://libsemanage-fix-path-nologin.patch \
13 file://libsemanage-drop-Wno-unused-but-set-variable.patch \ 13 file://libsemanage-drop-Wno-unused-but-set-variable.patch \
14 file://libsemanage-define-FD_CLOEXEC-as-necessary.patch;striplevel=2 \
14 " 15 "