-
Notifications
You must be signed in to change notification settings - Fork 125
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
How to transfer the current process or its thread to another context? #627
Comments
You need:
|
|
What other solutions are there? i tried to run the program as root user |
Probably a limitation of setcon(3) as mentioned in the man page:
BUT: You really should not use setcon(3), especially in a complex application like java; use for example a wrapper script with just |
I want to implement the transfer of the current process or its application thread (what I wanted ideally) from java
right now I'm using
int setcon(String context);
function returns
-1
for example i need to transit from
user_u:user_r:java_t
->user_u:user_r:user_t
is it correct to use this function (setcon)
and what TE rules are needed to transfer
aureport -i -a|grep 103475
The text was updated successfully, but these errors were encountered: