diff options
| author | Xin Ouyang <Xin.Ouyang@windriver.com> | 2013-01-24 19:25:33 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-01-28 12:29:30 +0000 |
| commit | e6cdf999290aa35342ff76117ed3181af72358df (patch) | |
| tree | ae76a89ff15e91d1ab1601a458c9024713897377 /meta | |
| parent | 43c2c5b42693b94d3e4fdde2c859df743572eda1 (diff) | |
| download | poky-e6cdf999290aa35342ff76117ed3181af72358df.tar.gz | |
libcgroup: fix the QA issue for pam_cgroup.so*
PAM modules in ${base_libdir}/security/ should be binary .so files,
not symlinks, so fix this. Since pam_cgroup.so is installed into
${base_libdir}/security, move libcgroup.so.* to ${base_libdir} to
avoid "unsafe-references-in-binaries" QA issue.
(From OE-Core rev: 35567eed06ebd12f7c8ee0a04b6cb28530cf85d7)
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/recipes-core/libcgroup/libcgroup_0.37.1.bb | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/meta/recipes-core/libcgroup/libcgroup_0.37.1.bb b/meta/recipes-core/libcgroup/libcgroup_0.37.1.bb index e74f8312dc..d217f7b149 100644 --- a/meta/recipes-core/libcgroup/libcgroup_0.37.1.bb +++ b/meta/recipes-core/libcgroup/libcgroup_0.37.1.bb | |||
| @@ -23,5 +23,16 @@ FILES_cgroups-pam-plugin = "${base_libdir}/security/pam_cgroup.so*" | |||
| 23 | FILES_${PN}-dbg += "${base_libdir}/security/.debug" | 23 | FILES_${PN}-dbg += "${base_libdir}/security/.debug" |
| 24 | FILES_${PN}-dev += "${base_libdir}/security/*.la" | 24 | FILES_${PN}-dev += "${base_libdir}/security/*.la" |
| 25 | 25 | ||
| 26 | # We really need the symlink so :( | 26 | do_install_append() { |
| 27 | INSANE_SKIP_cgroups-pam-plugin = "dev-so" | 27 | # Moving libcgroup to base_libdir |
| 28 | if [ ! ${D}${libdir} -ef ${D}${base_libdir} ]; then | ||
| 29 | mkdir -p ${D}/${base_libdir}/ | ||
| 30 | mv -f ${D}${libdir}/libcgroup.so.* ${D}${base_libdir}/ | ||
| 31 | ln -sf ${D}${base_libdir}/libcgroup.so.1 ${D}${libdir}/libcgroup.so | ||
| 32 | fi | ||
| 33 | # pam modules in ${base_libdir}/security/ should be binary .so files, not symlinks. | ||
| 34 | if [ -f ${D}${base_libdir}/security/pam_cgroup.so.0.0.0 ]; then | ||
| 35 | mv -f ${D}${base_libdir}/security/pam_cgroup.so.0.0.0 ${D}${base_libdir}/security/pam_cgroup.so | ||
| 36 | rm -f ${D}${base_libdir}/security/pam_cgroup.so.* | ||
| 37 | fi | ||
| 38 | } | ||
