diff options
author | Amarnath Valluri <amarnath.valluri@intel.com> | 2015-07-17 11:53:24 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-07-20 10:40:42 +0100 |
commit | 88dd997d9941b63ae9eead6690ecf2b785c0740c (patch) | |
tree | fe531585f3741dcb457bcf74683db6f60a0a2bce /meta/recipes-extended/pam/libpam_1.1.6.bb | |
parent | e9b9f8c0c5a208c02453839442099527fe6b13de (diff) | |
download | poky-88dd997d9941b63ae9eead6690ecf2b785c0740c.tar.gz |
libpam: Upgrade v1.1.6 -> v1.2.1
Dropped upstreamed patches(commit-id):
- add-checks-for-crypt-returning-NULL.patch(8dc056c)
- destdirfix.patch(d7e6b92)
- libpam-fix-for-CVE-2010-4708.patch(4c430f6)
Dropped backported patches(commit-id):
- pam_timestamp-fix-potential-directory-traversal-issu.patch(9dcead8)
- reflect-the-enforce_for_root-semantics-change-in-pam.patch(bd07ad3)
Forward ported patches:
- pam-unix-nullok-secure.patch
- crypt_configure.patch
(From OE-Core rev: 8683206f7ba85f693751415f896a0cc62931e3c4)
Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/pam/libpam_1.1.6.bb')
-rw-r--r-- | meta/recipes-extended/pam/libpam_1.1.6.bb | 173 |
1 files changed, 0 insertions, 173 deletions
diff --git a/meta/recipes-extended/pam/libpam_1.1.6.bb b/meta/recipes-extended/pam/libpam_1.1.6.bb deleted file mode 100644 index d347bdc43b..0000000000 --- a/meta/recipes-extended/pam/libpam_1.1.6.bb +++ /dev/null | |||
@@ -1,173 +0,0 @@ | |||
1 | SUMMARY = "Linux-PAM (Pluggable Authentication Modules)" | ||
2 | DESCRIPTION = "Linux-PAM (Pluggable Authentication Modules for Linux), a flexible mechanism for authenticating users" | ||
3 | HOMEPAGE = "https://fedorahosted.org/linux-pam/" | ||
4 | BUGTRACKER = "https://fedorahosted.org/linux-pam/newticket" | ||
5 | SECTION = "base" | ||
6 | # PAM is dual licensed under GPL and BSD. | ||
7 | # /etc/pam.d comes from Debian libpam-runtime in 2009-11 (at that time | ||
8 | # libpam-runtime-1.0.1 is GPLv2+), by openembedded | ||
9 | LICENSE = "GPLv2+ | BSD" | ||
10 | LIC_FILES_CHKSUM = "file://COPYING;md5=7eb5c1bf854e8881005d673599ee74d3" | ||
11 | |||
12 | SRC_URI = "http://linux-pam.org/library/Linux-PAM-${PV}.tar.bz2 \ | ||
13 | file://99_pam \ | ||
14 | file://pam.d/common-account \ | ||
15 | file://pam.d/common-auth \ | ||
16 | file://pam.d/common-password \ | ||
17 | file://pam.d/common-session \ | ||
18 | file://pam.d/common-session-noninteractive \ | ||
19 | file://pam.d/other \ | ||
20 | file://libpam-xtests.patch \ | ||
21 | file://destdirfix.patch \ | ||
22 | file://fixsepbuild.patch \ | ||
23 | file://reflect-the-enforce_for_root-semantics-change-in-pam.patch \ | ||
24 | file://add-checks-for-crypt-returning-NULL.patch \ | ||
25 | file://libpam-fix-for-CVE-2010-4708.patch \ | ||
26 | file://pam-security-abstract-securetty-handling.patch \ | ||
27 | file://pam-unix-nullok-secure.patch \ | ||
28 | file://pam_timestamp-fix-potential-directory-traversal-issu.patch \ | ||
29 | file://libpam-xtests-remove-bash-dependency.patch \ | ||
30 | file://crypt_configure.patch \ | ||
31 | " | ||
32 | SRC_URI[md5sum] = "7b73e58b7ce79ffa321d408de06db2c4" | ||
33 | SRC_URI[sha256sum] = "bab887d6280f47fc3963df3b95735a27a16f0f663636163ddf3acab5f1149fc2" | ||
34 | |||
35 | SRC_URI_append_libc-uclibc = " file://pam-no-innetgr.patch" | ||
36 | SRC_URI_append_libc-musl = " file://pam-no-innetgr.patch" | ||
37 | |||
38 | DEPENDS = "bison flex flex-native cracklib" | ||
39 | |||
40 | EXTRA_OECONF = "--with-db-uniquename=_pam \ | ||
41 | --includedir=${includedir}/security \ | ||
42 | --libdir=${base_libdir} \ | ||
43 | --disable-nis \ | ||
44 | --disable-regenerate-docu \ | ||
45 | --disable-prelude" | ||
46 | |||
47 | CFLAGS_append = " -fPIC " | ||
48 | |||
49 | PR = "r5" | ||
50 | |||
51 | S = "${WORKDIR}/Linux-PAM-${PV}" | ||
52 | |||
53 | inherit autotools gettext pkgconfig | ||
54 | |||
55 | PACKAGECONFIG[audit] = "--enable-audit,--disable-audit,audit," | ||
56 | |||
57 | PACKAGES += "${PN}-runtime ${PN}-xtests" | ||
58 | FILES_${PN} = "${base_libdir}/lib*${SOLIBS}" | ||
59 | FILES_${PN}-dbg += "${base_libdir}/security/.debug \ | ||
60 | ${base_libdir}/security/pam_filter/.debug \ | ||
61 | ${datadir}/Linux-PAM/xtests/.debug" | ||
62 | |||
63 | FILES_${PN}-dev += "${base_libdir}/security/*.la ${base_libdir}/*.la ${base_libdir}/lib*${SOLIBSDEV}" | ||
64 | FILES_${PN}-runtime = "${sysconfdir}" | ||
65 | FILES_${PN}-xtests = "${datadir}/Linux-PAM/xtests" | ||
66 | |||
67 | PACKAGES_DYNAMIC += "^${MLPREFIX}pam-plugin-.*" | ||
68 | |||
69 | def get_multilib_bit(d): | ||
70 | baselib = d.getVar('baselib', True) or '' | ||
71 | return baselib.replace('lib', '') | ||
72 | |||
73 | libpam_suffix = "suffix${@get_multilib_bit(d)}" | ||
74 | |||
75 | RPROVIDES_${PN} += "${PN}-${libpam_suffix}" | ||
76 | RPROVIDES_${PN}-runtime += "${PN}-runtime-${libpam_suffix}" | ||
77 | |||
78 | RDEPENDS_${PN}-runtime = "${PN}-${libpam_suffix} \ | ||
79 | ${MLPREFIX}pam-plugin-deny-${libpam_suffix} \ | ||
80 | ${MLPREFIX}pam-plugin-permit-${libpam_suffix} \ | ||
81 | ${MLPREFIX}pam-plugin-warn-${libpam_suffix} \ | ||
82 | ${MLPREFIX}pam-plugin-unix-${libpam_suffix} \ | ||
83 | " | ||
84 | RDEPENDS_${PN}-xtests = "${PN}-${libpam_suffix} \ | ||
85 | ${MLPREFIX}pam-plugin-access-${libpam_suffix} \ | ||
86 | ${MLPREFIX}pam-plugin-debug-${libpam_suffix} \ | ||
87 | ${MLPREFIX}pam-plugin-cracklib-${libpam_suffix} \ | ||
88 | ${MLPREFIX}pam-plugin-pwhistory-${libpam_suffix} \ | ||
89 | ${MLPREFIX}pam-plugin-succeed-if-${libpam_suffix} \ | ||
90 | ${MLPREFIX}pam-plugin-time-${libpam_suffix} \ | ||
91 | coreutils" | ||
92 | |||
93 | # FIXME: Native suffix breaks here, disable it for now | ||
94 | RRECOMMENDS_${PN} = "${PN}-runtime-${libpam_suffix}" | ||
95 | RRECOMMENDS_${PN}_class-native = "" | ||
96 | |||
97 | python populate_packages_prepend () { | ||
98 | def pam_plugin_append_file(pn, dir, file): | ||
99 | nf = os.path.join(dir, file) | ||
100 | of = d.getVar('FILES_' + pn, True) | ||
101 | if of: | ||
102 | nf = of + " " + nf | ||
103 | d.setVar('FILES_' + pn, nf) | ||
104 | |||
105 | def pam_plugin_hook(file, pkg, pattern, format, basename): | ||
106 | pn = d.getVar('PN', True) | ||
107 | libpam_suffix = d.getVar('libpam_suffix', True) | ||
108 | |||
109 | rdeps = d.getVar('RDEPENDS_' + pkg, True) | ||
110 | if rdeps: | ||
111 | rdeps = rdeps + " " + pn + "-" + libpam_suffix | ||
112 | else: | ||
113 | rdeps = pn + "-" + libpam_suffix | ||
114 | d.setVar('RDEPENDS_' + pkg, rdeps) | ||
115 | |||
116 | provides = d.getVar('RPROVIDES_' + pkg, True) | ||
117 | if provides: | ||
118 | provides = provides + " " + pkg + "-" + libpam_suffix | ||
119 | else: | ||
120 | provides = pkg + "-" + libpam_suffix | ||
121 | d.setVar('RPROVIDES_' + pkg, provides) | ||
122 | |||
123 | mlprefix = d.getVar('MLPREFIX', True) or '' | ||
124 | dvar = bb.data.expand('${WORKDIR}/package', d, True) | ||
125 | pam_libdir = d.expand('${base_libdir}/security') | ||
126 | pam_sbindir = d.expand('${sbindir}') | ||
127 | pam_filterdir = d.expand('${base_libdir}/security/pam_filter') | ||
128 | pam_pkgname = mlprefix + 'pam-plugin%s' | ||
129 | |||
130 | do_split_packages(d, pam_libdir, '^pam(.*)\.so$', pam_pkgname, | ||
131 | 'PAM plugin for %s', hook=pam_plugin_hook, extra_depends='') | ||
132 | pam_plugin_append_file('%spam-plugin-unix' % mlprefix, pam_sbindir, 'unix_chkpwd') | ||
133 | pam_plugin_append_file('%spam-plugin-unix' % mlprefix, pam_sbindir, 'unix_update') | ||
134 | pam_plugin_append_file('%spam-plugin-tally' % mlprefix, pam_sbindir, 'pam_tally') | ||
135 | pam_plugin_append_file('%spam-plugin-tally2' % mlprefix, pam_sbindir, 'pam_tally2') | ||
136 | pam_plugin_append_file('%spam-plugin-timestamp' % mlprefix, pam_sbindir, 'pam_timestamp_check') | ||
137 | pam_plugin_append_file('%spam-plugin-mkhomedir' % mlprefix, pam_sbindir, 'mkhomedir_helper') | ||
138 | pam_plugin_append_file('%spam-plugin-console' % mlprefix, pam_sbindir, 'pam_console_apply') | ||
139 | do_split_packages(d, pam_filterdir, '^(.*)$', 'pam-filter-%s', 'PAM filter for %s', extra_depends='') | ||
140 | } | ||
141 | |||
142 | do_install() { | ||
143 | autotools_do_install | ||
144 | |||
145 | # don't install /var/run when populating rootfs. Do it through volatile | ||
146 | rm -rf ${D}${localstatedir} | ||
147 | install -d ${D}${sysconfdir}/default/volatiles | ||
148 | install -m 0644 ${WORKDIR}/99_pam ${D}${sysconfdir}/default/volatiles | ||
149 | |||
150 | install -d ${D}${sysconfdir}/pam.d/ | ||
151 | install -m 0644 ${WORKDIR}/pam.d/* ${D}${sysconfdir}/pam.d/ | ||
152 | |||
153 | # The lsb requires unix_chkpwd has setuid permission | ||
154 | chmod 4755 ${D}${sbindir}/unix_chkpwd | ||
155 | |||
156 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then | ||
157 | echo "session optional pam_systemd.so" >> ${D}${sysconfdir}/pam.d/common-session | ||
158 | fi | ||
159 | } | ||
160 | |||
161 | python do_pam_sanity () { | ||
162 | if not bb.utils.contains('DISTRO_FEATURES', 'pam', True, False, d): | ||
163 | bb.warn("Building libpam but 'pam' isn't in DISTRO_FEATURES, PAM won't work correctly") | ||
164 | } | ||
165 | addtask pam_sanity before do_configure | ||
166 | |||
167 | BBCLASSEXTEND = "nativesdk native" | ||
168 | |||
169 | CONFFILES_${PN}-runtime += "${sysconfdir}/pam.d/common-session" | ||
170 | CONFFILES_${PN}-runtime += "${sysconfdir}/pam.d/common-auth" | ||
171 | CONFFILES_${PN}-runtime += "${sysconfdir}/pam.d/common-password" | ||
172 | CONFFILES_${PN}-runtime += "${sysconfdir}/pam.d/common-session-noninteractive" | ||
173 | CONFFILES_${PN}-runtime += "${sysconfdir}/pam.d/common-account" | ||