Saya mencoba memberikan hak eksekusi executable java untuk membuka port di bawah 1024 di Linux. Ini pengaturannya
/home/test/java
berisi Oracle Server JRE 7.0.25- CentOS 6.4
Inilah pengembalian getcap
[test@centos6 java]$ pwd
/home/test/java
[test@centos6 java]$ getcap bin/java
bin/java = cap_net_bind_service+ep
[test@centos6 java]$ getcap jre/bin/java
jre/bin/java = cap_net_bind_service+ep
Mencoba mengeksekusi java memberikan kesalahan berikut.
[test@centos6 java]$ bin/java
bin/java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory
[test@centos6 java]$ jre/bin/java
jre/bin/java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory
Apakah mungkin untuk menjalankan Java 7_u25 ketika biner telah diberikan hak tinggi dengan setcap, jika demikian bagaimana?
JDK-6919633: Runtime tidak mendukung Kemampuan File POSIX (Kemampuan Linux AKA) mengatakan bahwa
Note: when using the setcap the libraries needed by the java launcher
should be present in /usr/lib or any other "trusted" location that the
runtime loader (rtld) uses to find shared libraries.
Bagaimana cara membuat perpustakaan bersama dipercaya?