Gentlefolk, particularly any auth specialists among you;
how would you go about setting up a secure environment to
run
wikiuser provided script code in?
The particular case I'm looking at is a BeanShell
interpreter that
must not have any access to IO or system resources. Regular
code
needs to be run without restrictions (or I need to be able
to define
sensible permissions for all normal code), interpreter
invocations
need to run in a severely restricted context.
I've set up a dummy LoginContext, am able to provide a
Subject and
Principal, and happily call a PrivilegedAction as the
subject, but my
experiments with security managers, policies, and permission
grants
are failing. The JSPWiki stock auth may also be confounding
me.
If this piques your interest, or if you're just generally
in a jovial
mood and can't get enough of JAAS, I'll be happy to
describe what I'm
doing with more detail and code. Drop me a note if so;
another pair
of eyes might help me locate an obvious error.
Off into PrincipalSubjectPermissionLoginContext nightmares;
//ebu
_______________________________________________
Jspwiki-users mailing list
Jspwiki-users ecyrd.com
http://ecyrd.com/cgi-bin/mailman/listinfo/jspwiki-users
a>
|