diff options
author | Patrick Ohly <patrick.ohly@intel.com> | 2017-07-12 10:44:11 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-07-17 13:49:02 +0100 |
commit | 1ad32536c2d4a3e55e698d27d827caee788cb0f7 (patch) | |
tree | aea1d154cb9d4af64ddaa3089332402195374642 /scripts/lib/devtool/upgrade.py | |
parent | 7d3e734481e5d400d03ffd0a12669913fd264c5f (diff) | |
download | openembedded-core-1ad32536c2d4a3e55e698d27d827caee788cb0f7.tar.gz openembedded-core-1ad32536c2d4a3e55e698d27d827caee788cb0f7.tar.bz2 openembedded-core-1ad32536c2d4a3e55e698d27d827caee788cb0f7.zip |
util-linux: fix "su -" and package su separately
"su -" == "su --login" was broken because it uses /etc/pam.d/su-l and
lacking that, falls back to /etc/pam.d/other which denies the
operation. The fix is to symlink "su-l" to the normal "su" pam config
file.
Because "su" usually comes from "shadow" and has been broken like this
without anyone noticing, it probably is not used much and thus should
be packaged separately so that it can be installed only when really
needed. For backwards compatibility, "util-linux" still pulls it in.
It is a bit strange that DISTRO_FEATURES are getting checked when
deciding whether the packages should be defined. It is not wrong, the
packages will be simply empty and thus probably not created when the
distro feature is on and the package config is off. Perhaps there is a
reason, so this is kept unchanged. The symlink however only gets
created when su.util-linux really gets built.
[YOCTO #11126]
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts/lib/devtool/upgrade.py')
0 files changed, 0 insertions, 0 deletions