Skip to contentSkip to conversation

java threads

DISCUSSION Jeremiah Jahn 2 participants 5 messages Feb 6, 2008 – Feb 7, 2008 SELinux security module

lore
Share & tools
lore
#0 lore raw

what allows java to create a new thread? execmem? execstack?

Earth is a beta site.

#1 lore raw
Quoted 1 line · Jeremiah Jahn

what allows java to create a new thread? execmem? execstack?

execmem/execstack are memory controls, not thread controls.

Signature · 8 lines
Stephen Smalley
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#2 lore raw
Quoted 4 lines · Stephen Smalley
Quoted 1 line · Jeremiah Jahn

what allows java to create a new thread? execmem? execstack?

execmem/execstack are memory controls, not thread controls.

That's what I was thinking, but without allowing execmem, java can't seem to start up a new thread. I know for the longest time, java on Linux didn't use the standard thread API, so I thought that might be the cause. I'm just curious to see if anyone knows why this seems to be required for java to do it's thing with regards to threads.

Quoted 1 line

"If I am elected, the concrete barriers around the WHITE HOUSE will be replaced by tasteful foam replicas of ANN MARGARET!"

#3 lore raw
Quoted 11 lines · Jeremiah Jahn
Quoted 4 lines · Stephen Smalley
Quoted 1 line · Jeremiah Jahn

what allows java to create a new thread? execmem? execstack?

execmem/execstack are memory controls, not thread controls.

That's what I was thinking, but without allowing execmem, java can't seem to start up a new thread. I know for the longest time, java on Linux didn't use the standard thread API, so I thought that might be the cause. I'm just curious to see if anyone knows why this seems to be required for java to do it's thing with regards to threads.

Might be allocating the thread stack with PROT_EXEC, triggering the execmem denial.

Signature · 8 lines
Stephen Smalley
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#4 lore raw
In reply to Jeremiah Jahn
Quoted 11 lines · Jeremiah Jahn
Quoted 4 lines · Stephen Smalley
Quoted 1 line · Jeremiah Jahn

what allows java to create a new thread? execmem? execstack?

execmem/execstack are memory controls, not thread controls.

That's what I was thinking, but without allowing execmem, java can't seem to start up a new thread. I know for the longest time, java on Linux didn't use the standard thread API, so I thought that might be the cause. I'm just curious to see if anyone knows why this seems to be required for java to do it's thing with regards to threads.

BTW, java does require execmem in order to do runtime code generation regardless of the threads issue.

Signature · 8 lines
Stephen Smalley
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.