Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Q:java based application #564

Closed
freedom1b2830 opened this issue Dec 6, 2022 · 5 comments
Closed

Q:java based application #564

freedom1b2830 opened this issue Dec 6, 2022 · 5 comments

Comments

@freedom1b2830
Copy link
Contributor

Good day. There is a question about how to implement this:

The program is based on java code, running under elf64 binary file ide_exec_t
bin_t->ide_exec_t(+java_t) ->ide_t
How to grant permissions from java_t domain so that child processes don't have execstack permission

Related question about java_t, its execstack permission, what to do with it. This permission is related to libjvm.so when running java_exec_t

@pebenito
Copy link
Member

java_t does not have execstack by default, you have to enable the allow_java_execstack boolean.

Related question about java_t, its execstack permission, what to do with it. This permission is related to libjvm.so when running java_exec_t

I don't understand the question.

@freedom1b2830
Copy link
Contributor Author

I rethought my question.

1)how to define ide_t domain as java application
user_t->ide_exec_t->ide_t (java template)

  1. about execstack:
    with java running, need execstack call by libjvm.so
    you can't help here, it's a java problem (

@pebenito
Copy link
Member

pebenito commented Feb 27, 2023

it sounds like you should add allow ide_t self:process execstack;

@freedom1b2830
Copy link
Contributor Author

How to declare domain for java application?

@pebenito
Copy link
Member

There is no special way to declare a domain for java.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants