diff options
author | Yi Zhao <yi.zhao@windriver.com> | 2018-08-14 15:19:39 +0800 |
---|---|---|
committer | Joe MacDonald <joe_macdonald@mentor.com> | 2018-08-14 08:03:38 -0400 |
commit | f0dde7110b3597d4f379c7d9a29efec2ef647709 (patch) | |
tree | 2d39543652899a49f1eaf256737a2fe1772b668e | |
parent | 6551e95179b1a9f7ca611f02ca55956a529389ad (diff) | |
download | meta-selinux-f0dde7110b3597d4f379c7d9a29efec2ef647709.tar.gz |
policycoreutils: replace _virtclass-native with _class-native
The _virtclass-native is obsolete and replaced by _class-native. In
recent oe-core commit c5aa33ac483618bc23fbaccb0a18853186f9155d the
_virtclass-native override was dropped entirely which caused
refpolicy-mls do_install failed:
libsemanage.get_home_dirs: Error while fetching users.
Returning list so far.
libsemanage.semanage_validate_and_compile_fcontexts:
setfiles returned error code 1. (No such file or directory).
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
-rw-r--r-- | recipes-security/selinux/policycoreutils.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/recipes-security/selinux/policycoreutils.inc b/recipes-security/selinux/policycoreutils.inc index 1842fd8..7825a6c 100644 --- a/recipes-security/selinux/policycoreutils.inc +++ b/recipes-security/selinux/policycoreutils.inc | |||
@@ -128,7 +128,7 @@ BBCLASSEXTEND = "native" | |||
128 | 128 | ||
129 | PCU_NATIVE_CMDS = "setfiles semodule hll" | 129 | PCU_NATIVE_CMDS = "setfiles semodule hll" |
130 | 130 | ||
131 | do_compile_virtclass-native() { | 131 | do_compile_class-native() { |
132 | for PCU_CMD in ${PCU_NATIVE_CMDS} ; do | 132 | for PCU_CMD in ${PCU_NATIVE_CMDS} ; do |
133 | oe_runmake -C $PCU_CMD \ | 133 | oe_runmake -C $PCU_CMD \ |
134 | INCLUDEDIR='${STAGING_INCDIR}' \ | 134 | INCLUDEDIR='${STAGING_INCDIR}' \ |
@@ -136,7 +136,7 @@ do_compile_virtclass-native() { | |||
136 | done | 136 | done |
137 | } | 137 | } |
138 | 138 | ||
139 | sysroot_stage_dirs_append_virtclass-native() { | 139 | sysroot_stage_dirs_append_class-native() { |
140 | cp -R $from/${prefix}/libexec $to/${prefix}/libexec | 140 | cp -R $from/${prefix}/libexec $to/${prefix}/libexec |
141 | } | 141 | } |
142 | 142 | ||
@@ -153,7 +153,7 @@ do_install_prepend() { | |||
153 | export SEMODULE_PATH=${sbindir} SYSTEMDDIR=${D}/${systemd_unitdir} | 153 | export SEMODULE_PATH=${sbindir} SYSTEMDDIR=${D}/${systemd_unitdir} |
154 | } | 154 | } |
155 | 155 | ||
156 | do_install_virtclass-native() { | 156 | do_install_class-native() { |
157 | for PCU_CMD in ${PCU_NATIVE_CMDS} ; do | 157 | for PCU_CMD in ${PCU_NATIVE_CMDS} ; do |
158 | oe_runmake -C $PCU_CMD install \ | 158 | oe_runmake -C $PCU_CMD install \ |
159 | DESTDIR="${D}" \ | 159 | DESTDIR="${D}" \ |