security - Keeping my Java program secure -
I have a Java project that uses a library, this library needs root privileges to perform certain tasks. That is what I need in my project. I should note that despite the Java-based project it is only for Linux.
There will be several tasks in this project which do not require root privileges, some of which have to negotiate with the Root privilege task and nothing else.
In addition, the project will execute programs such as user input data under root rights.
All this root activity has worried me about security. My system target machine user will have its own computer and there is no intention to run this system on some public terminal but security is still important because The unknown external Bluetooth device will be able to interact with this system.
So far, my security measures include a number of filtering user inputs, and with very careful attention to all the tasks that the external Bluetooth devices will cause the system to be executed, but I am unhappy with this I am
What will people recommend? One idea is to divide the system into two or three modules, which have a GUI and non-root backend, which include a root cover and other tools for the Bluukov root backend and potentially HCIC config.
I have seen some programs, for example Apache, who once run their privileges "drop down" how is it achieved and what is it effective?
Whether this setup system call (in libc), which you noted, effectively goes down to the privilege of the process. Can call, or
It works very well, even for Java programs, except that when you go from root to non-root, you will not be able to do any work. High privileges If required, then the technique can only be used when Apache does, as all privileged operations can be advanced.
Another possibility is to split your program into two processes - when launched, your program runs another program, runs as root, then the original root is non-root To devalue is to be done. Two processes can communicate on their stdin / stdout.
Comments
Post a Comment