Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

setuid bit on java - UnsatisfiedLinkError

843811Sep 26 2005
Scenario:
set user id bit for java executable for linux is set as this

-rwsr-sr-x 1 root root 64492 Aug 27 05:33 java

Now you login as non-root and run a Java Program's main method with following code
System.out.println(java.awt.Component);
System.out.println(Class.forName("java.awt.Component"));
The first line of code is sucessful, but the second line is not.
It throws the UnsatisfiedLinkError on line 2.

java.lang.UnsatisfiedLinkError: /opt/SnappimonAgent/jre/lib/i386/libawt.so: libmlib_image.so: cannot open shared object file: No such file
ry

But when run as root, it just runs fine.

Can any body breaks it?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 24 2005
Added on Sep 26 2005
0 comments
164 views