securitymanager Questions
2
Solved
I am trying to reproduce an API for executing Java (like ideone.com has), but so far I'm having a lot of difficulties running Java sandboxed (SELinux sandbox doesn't work).
I've heard about the Se...
Prorate asked 28/5, 2013 at 8:51
3
Please don't post an answer saying "you shouldn't do this." I don't plan to use this in production code, but only for some hacking fun.
In answering this question, I wanted to run some arbitrary u...
Katheleenkatherin asked 22/3, 2013 at 6:3
1
A recent question on SO lead me to an older answer about the Java Security Manager. My question about this line in that answer:
The security manager impacts performances though, and it is rarely...
Grudge asked 15/2, 2013 at 21:15
1
Solved
How to enforce reflection security by not allow the Method, Field, Constructor object to call setAccessible(true) ? SecurityPolicy File or something else?
Normally for stand-alone Java application...
Beardsley asked 1/2, 2013 at 4:29
3
I'm trying to prohibit the call to System.exit(int); in some jars.
These jars will be developed by external teams and loaded by our "container" application .
My first reflex is to use the java se...
Glynda asked 25/11, 2011 at 14:14
2
Solved
Context
I am writing a Java system where code is executed in very strict sandboxes. A query (consisting of one or more classes) should only be allowed access to exactly one folder (and subfolders ...
Carrie asked 11/12, 2012 at 11:27
1
Solved
permission java.net.SocketPermission "192.168.1.1:31337", "connect, accept, resolve";
What does the following permission allow? Is my Application allowed to accept connections only from 192.168.1...
Fleischman asked 5/9, 2012 at 14:53
1
Solved
I don't want to modify anything in my java home directory, however, I am afraid that sometimes my default java.policy file may be too permissive. Is there a way for me to use a specified policy fil...
Regelation asked 23/7, 2012 at 20:53
1
Solved
I was hoping that someone can help me with the following:
My understanding about java stack introspection (maybe a bit oversimplified here) is that a process generates a stack frame that is then a...
Shermanshermie asked 10/3, 2012 at 22:27
1
Solved
I'm trying to load a class via an URLClassLoader (well, it neither works with an normal class loader) and want them to not have any permission.
Therefore, i created my own security manager, which ...
Pyretic asked 31/10, 2011 at 0:36
3
Solved
Question summary: How do I modify the code below so that untrusted, dynamically-loaded code runs in a security sandbox while the rest of the application remains unrestricted? Why doesn't URLClassLo...
Disease asked 16/10, 2010 at 3:28
1
Solved
I wanted to create a very restrictive security manager, so I extended SecurityManager and overridden all the custom checkXXX methods.
But then I found out that my security manager is useless, beca...
Cascara asked 3/8, 2011 at 5:20
1
Solved
I want to run a specific thread-class in a restricted sandbox, while the rest of the application can run unrestricted.
Is it possible to attach a security manager for a specific thread-class only?...
Swede asked 19/7, 2011 at 8:53
1
Solved
Problem:
In my Java application (not an applet) I wish to limit certain file operations to all classes except a list/group/package of classes that should not be restricted.
Specifically, I would l...
Relationship asked 2/4, 2011 at 21:28
2
Under the default security manager, if I create an ExecutorService (ThreadPoolExecutor in this case), I cannot shut it down, shutdown() just calls checkPermission("modifyThread") and thus immediate...
Glacier asked 30/8, 2010 at 1:1
3
Solved
This article about Java security says:
Code in the Java library consults the
Security Manager whenever a dangerous
operation is about to be attempted.
So, what does this exactly mean? Say, i...
Gainful asked 4/3, 2011 at 11:12
4
Solved
Currently I'm trying to write the Sandbox for running untrusted Java code. The idea is to isolate Java application from accessing file system or network sockets. The solution I have at the moment i...
Psychopathology asked 1/12, 2010 at 8:59
3
I need to call some semi-trustworthy Java code and want to disable the ability to use reflection for the duration of that code's execution.
try{
// disable reflection somehow
someObject.method(...
Failure asked 21/4, 2009 at 0:42
4
I'm using Tomcat 6.0.24, as packaged for Ubuntu Karmic. The default security policy of Ubuntu's Tomcat package is pretty stringent, but appears straightforward. In /var/lib/tomcat6/conf/policy.d, t...
Hendren asked 15/4, 2010 at 12:48
3
Solved
Is it sufficient to secure a Java web application with the rights of the user that is running the application server process or is it reasonable also to use SecurityManager with a suitable policy f...
Widener asked 25/8, 2009 at 8:33
© 2022 - 2024 — McMap. All rights reserved.