rpm: apply signatures to config files

Since rpm 4.15, the users can control over the installation of
signatures on config files through a variable named
%_ima_sign_config_files. But this is disabled by default. Add a macro
configuration file to enable it.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
This commit is contained in:
Yi Zhao
2020-12-04 16:41:35 +08:00
committed by Jia Zhang
parent 628949305c
commit d6ca3fa224
2 changed files with 10 additions and 0 deletions

View File

@@ -9,3 +9,12 @@ EXTRA_OECONF_remove += "\
--disable-plugins \
"
EXTRA_OECONF_append_class-native = " --disable-inhibit-plugin"
SRC_URI_append = " \
file://macros.ima \
"
do_install_append () {
install -d ${D}${sysconfdir}/rpm
install -m 0644 ${WORKDIR}/macros.ima ${D}${sysconfdir}/rpm/
}

View File

@@ -0,0 +1 @@
%_ima_sign_config_files 1