mirror of
https://git.yoctoproject.org/meta-security
synced 2026-01-12 03:10:13 +00:00
ima-evm-keys: don't use lnr
lnr is a script in oe-core that creates relative symlinks, with the same behaviour as `ln --relative --symlink`. It was added back in 2014[1] as not all of the supported host distributions at the time shipped coreutils 8.16, the first release with --relative. However the oldest coreutils release in the supported distributions is now 8.22 in CentOS 7, so lnr can be deprecated and users switched to ln. Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
@@ -11,7 +11,7 @@ do_install () {
|
||||
if [ -e "${IMA_EVM_X509}" ]; then
|
||||
install -d ${D}/${sysconfdir}/keys
|
||||
install "${IMA_EVM_X509}" ${D}${sysconfdir}/keys/x509_evm.der
|
||||
lnr ${D}${sysconfdir}/keys/x509_evm.der ${D}${sysconfdir}/keys/x509_ima.der
|
||||
ln -rs ${D}${sysconfdir}/keys/x509_evm.der ${D}${sysconfdir}/keys/x509_ima.der
|
||||
fi
|
||||
}
|
||||
do_install[file-checksums] += "${@'${IMA_EVM_X509}:%s' % os.path.exists('${IMA_EVM_X509}')}"
|
||||
|
||||
Reference in New Issue
Block a user