mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-22 12:04:39 +02:00
6746409: Error: dl failure on line 689: Copies of libjvm.so need to have chcon (selinux) re-applied to them
Reviewed-by: tbell
This commit is contained in:
parent
edb7cf2a91
commit
ddc444d7b2
1 changed files with 14 additions and 1 deletions
|
@ -704,7 +704,20 @@ endif
|
||||||
# Install of imported file (JDK_IMPORT_PATH, or some other external location)
|
# Install of imported file (JDK_IMPORT_PATH, or some other external location)
|
||||||
define install-import-file
|
define install-import-file
|
||||||
@$(ECHO) "ASSEMBLY_IMPORT: $@"
|
@$(ECHO) "ASSEMBLY_IMPORT: $@"
|
||||||
$(install-file)
|
$(prep-target)
|
||||||
|
$(CP) $< $@
|
||||||
|
@if [ "$(PLATFORM)" = "linux" -a "$(@F)" = "libjvm.so" ] ; then \
|
||||||
|
if [ -x /usr/sbin/selinuxenabled ] ; then \
|
||||||
|
/usr/sbin/selinuxenabled; \
|
||||||
|
if [ $$? = 0 ] ; then \
|
||||||
|
$(ECHO) "/usr/bin/chcon -t textrel_shlib_t $@"; \
|
||||||
|
/usr/bin/chcon -t textrel_shlib_t $@; \
|
||||||
|
if [ $$? != 0 ]; then \
|
||||||
|
echo "ERROR: Cannot chcon $@"; \
|
||||||
|
fi; \
|
||||||
|
fi; \
|
||||||
|
fi; \
|
||||||
|
fi
|
||||||
endef
|
endef
|
||||||
|
|
||||||
.PHONY: all build clean clobber
|
.PHONY: all build clean clobber
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue