Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recommended compiler and linker flags for GCC when building native library #88

Open
myfirenze opened this issue Jun 22, 2020 · 0 comments

Comments

@myfirenze
Copy link

libpty.so is embedded in the pty4j java library. Some security compiler and linker flags are not enabled for the Linux platform when building libpty.so, which may cause security risks

FilePath Object BIND_NOW NX PIC PIE RELRO SP NO Rpath/RunPath FS Ftrapv Strip
pty4j-0.9.4.jar_/resources/com/pty4j/native/linux/x86/libpty.so libpty.so NO YES YES UNUSED NO NO NO NO NO NO
pty4j-0.9.4.jar_/resources/com/pty4j/native/freebsd/x86/libpty.so libpty.so NO YES YES UNUSED NO NO NO NO NO NO
pty4j-0.9.4.jar_/resources/com/pty4j/native/linux/ppc64le/libpty.so libpty.so NO YES YES UNUSED YES YES NO NO NO NO
pty4j-0.9.4.jar_/resources/com/pty4j/native/freebsd/x86_64/libpty.so libpty.so NO YES YES UNUSED NO NO NO NO NO NO
pty4j-0.9.4.jar_/resources/com/pty4j/native/linux/x86_64/libpty.so libpty.so NO YES YES UNUSED NO NO NO NO NO NO

See https://developers.redhat.com/blog/2018/03/21/compiler-and-linker-flags-gcc/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant