Details
Description
container() {
sandbox() {
socketPermission("*", 80)
serverSocketPermission("localhost", 8080)
filePermission("*", "read")
filePermission("foo/bar/", "read, write, execute, delete")
container()
}
}
or
container() {
container() {
classpathelement(path:"foo.jar")
sandbox()
component(key:A, class:"AImpl")
component(key:B, class:"BImpl")
}
}
or
container() {
container() {
classpathelement(path:"foo.jar")
sandbox()
}
}
or
container() {
container() {
classpath()
component(key:A, class:"AImpl")
component(key:B, class:"BImpl")
}
}
}
or somesuch.
Activity
Paul Hammant
made changes -
Field | Original Value | New Value |
---|---|---|
Description |
container() { sandbox() { socketPermission("*",80) serverSocketPermission("localhost",8080) container() { component() } } } or somesuch. |
container() { sandbox() { socketPermission("*", 80) serverSocketPermission("localhost", 8080) filePermission("*", "read") filePermission("foo/bar/", "read, write, execute, delete") container() { component(key:A, class:"AImpl") component(key:B, class:"BImpl") } } } or somesuch. |
Paul Hammant
made changes -
Description |
container() { sandbox() { socketPermission("*", 80) serverSocketPermission("localhost", 8080) filePermission("*", "read") filePermission("foo/bar/", "read, write, execute, delete") container() { component(key:A, class:"AImpl") component(key:B, class:"BImpl") } } } or somesuch. |
container() { sandbox() { socketPermission("*", 80) serverSocketPermission("localhost", 8080) filePermission("*", "read") filePermission("foo/bar/", "read, write, execute, delete") container() { component(key:A, class:"AImpl") component(key:B, class:"BImpl") } } } or container() { container() { sandbox() { socketPermission("*", 80) serverSocketPermission("localhost", 8080) filePermission("*", "read") filePermission("foo/bar/", "read, write, execute, delete") } component(key:A, class:"AImpl") component(key:B, class:"BImpl") } } or container() { container() { sandbox() { socketPermission("*", 80) serverSocketPermission("localhost", 8080) filePermission("*", "read") filePermission("foo/bar/", "read, write, execute, delete") component(key:A, class:"AImpl") component(key:B, class:"BImpl") } } } or somesuch. |
Paul Hammant
made changes -
Description |
container() { sandbox() { socketPermission("*", 80) serverSocketPermission("localhost", 8080) filePermission("*", "read") filePermission("foo/bar/", "read, write, execute, delete") container() { component(key:A, class:"AImpl") component(key:B, class:"BImpl") } } } or container() { container() { sandbox() { socketPermission("*", 80) serverSocketPermission("localhost", 8080) filePermission("*", "read") filePermission("foo/bar/", "read, write, execute, delete") } component(key:A, class:"AImpl") component(key:B, class:"BImpl") } } or container() { container() { sandbox() { socketPermission("*", 80) serverSocketPermission("localhost", 8080) filePermission("*", "read") filePermission("foo/bar/", "read, write, execute, delete") component(key:A, class:"AImpl") component(key:B, class:"BImpl") } } } or somesuch. |
container() { sandbox() { socketPermission("*", 80) serverSocketPermission("localhost", 8080) filePermission("*", "read") filePermission("foo/bar/", "read, write, execute, delete") container() { classpathelement(path:"foo.jar") component(key:A, class:"AImpl") component(key:B, class:"BImpl") } } } or container() { container() { classpathelement(path:"foo.jar") sandbox() { socketPermission("*", 80) serverSocketPermission("localhost", 8080) filePermission("*", "read") filePermission("foo/bar/", "read, write, execute, delete") } component(key:A, class:"AImpl") component(key:B, class:"BImpl") } } or container() { container() { classpathelement(path:"foo.jar") sandbox() { socketPermission("*", 80) serverSocketPermission("localhost", 8080) filePermission("*", "read") filePermission("foo/bar/", "read, write, execute, delete") component(key:A, class:"AImpl") component(key:B, class:"BImpl") } } } or container() { container() { classpath() { classpathelement(path:"foo.jar") socketPermission("*", 80) serverSocketPermission("localhost", 8080) filePermission("*", "read") filePermission("foo/bar/", "read, write, execute, delete") } component(key:A, class:"AImpl") component(key:B, class:"BImpl") } } } or somesuch. |
Paul Hammant
made changes -
Assignee | Paul Hammant [ paul ] | |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
Mauro Talevi
made changes -
Status | Closed [ 6 ] | Reopened [ 4 ] |
Resolution | Fixed [ 1 ] | |
Assignee | Paul Hammant [ paul ] | Mauro Talevi [ maurotalevi ] |
Mauro Talevi
made changes -
Environment | ||
Fix Version/s | 1.0 [ 10148 ] | |
Description |
container() { sandbox() { socketPermission("*", 80) serverSocketPermission("localhost", 8080) filePermission("*", "read") filePermission("foo/bar/", "read, write, execute, delete") container() { classpathelement(path:"foo.jar") component(key:A, class:"AImpl") component(key:B, class:"BImpl") } } } or container() { container() { classpathelement(path:"foo.jar") sandbox() { socketPermission("*", 80) serverSocketPermission("localhost", 8080) filePermission("*", "read") filePermission("foo/bar/", "read, write, execute, delete") } component(key:A, class:"AImpl") component(key:B, class:"BImpl") } } or container() { container() { classpathelement(path:"foo.jar") sandbox() { socketPermission("*", 80) serverSocketPermission("localhost", 8080) filePermission("*", "read") filePermission("foo/bar/", "read, write, execute, delete") component(key:A, class:"AImpl") component(key:B, class:"BImpl") } } } or container() { container() { classpath() { classpathelement(path:"foo.jar") socketPermission("*", 80) serverSocketPermission("localhost", 8080) filePermission("*", "read") filePermission("foo/bar/", "read, write, execute, delete") } component(key:A, class:"AImpl") component(key:B, class:"BImpl") } } } or somesuch. |
container() { sandbox() { socketPermission("*", 80) serverSocketPermission("localhost", 8080) filePermission("*", "read") filePermission("foo/bar/", "read, write, execute, delete") container() { classpathelement(path:"foo.jar") component(key:A, class:"AImpl") component(key:B, class:"BImpl") } } } or container() { container() { classpathelement(path:"foo.jar") sandbox() { socketPermission("*", 80) serverSocketPermission("localhost", 8080) filePermission("*", "read") filePermission("foo/bar/", "read, write, execute, delete") } component(key:A, class:"AImpl") component(key:B, class:"BImpl") } } or container() { container() { classpathelement(path:"foo.jar") sandbox() { socketPermission("*", 80) serverSocketPermission("localhost", 8080) filePermission("*", "read") filePermission("foo/bar/", "read, write, execute, delete") component(key:A, class:"AImpl") component(key:B, class:"BImpl") } } } or container() { container() { classpath() { classpathelement(path:"foo.jar") socketPermission("*", 80) serverSocketPermission("localhost", 8080) filePermission("*", "read") filePermission("foo/bar/", "read, write, execute, delete") } component(key:A, class:"AImpl") component(key:B, class:"BImpl") } } } or somesuch. |
Mauro Talevi
made changes -
Resolution | Fixed [ 1 ] | |
Status | Reopened [ 4 ] | Closed [ 6 ] |
OK, this is only going to work on classloaders mounted outside the classes visible to the classloader that NanoContrainer/Groovy is running in. we already have a classloader() {} build term. Perhaps some variations :
sandBoxedClassLoader() - no rights
workDirClassLoader(workdir)
serverClassLoader(bindto, port)
they are all modifiablestarting points of course....
container() {
{ socketPermission("google.com", 80) serverSocketPermission("localhost", 8080) filePermission("foo/bar/", "read, write, execute, delete") add(PropertyPermission("os.name","read")) }sandBoxedClassLoader() {
classpathelement(path:"foo.jar")
permissions
component(key:A, class:"AImpl")
component(key:B, class:"BImpl")
}
}
}