...
Wiki Markup |
---|
This compliant solution removes the call to {{System.loadLibrary()}}. Any operations on the file descriptor {{f\[0\]}} must also occur outside the privileged block to make it easier to audit privileged code. However, {{f\[0\]}} should not leak out to untrusted code (see [SEC02-J. GuardDo not allow doPrivileged() blocks againstto untrustedleak invocationsensitive andinformation leakageoutside ofa sensitivetrust databoundary]). Minimize the amount of code that requires elevated privileges; this eases the necessary task of auditing privileged code. |
...