run_init requires full path.
Why does run_init require me to have the full path? Is there a security reason for this?
The basic problem is run_init, does a chdir("/") before execing the app.
So if I want to run a test scriptrun_init test.sh orrun_init ./test.sh
does not work.
I end up having to dorun_init pwd/test.sh
--
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.
Quoted 5 lines · Daniel J Walsh
Why does
run_initrequire me to have the full path? Is there a security reason for this?The basic problem is
run_init, does achdir("/")before execing the app.
Quoted 8 lines
So if I want to run a test script
run_inittest.shorrun_init./test.shdoes not work.
I end up having to do
run_initpwd/test.sh
See:
http://marc.theaimsgroup.com/?l=selinux&m=102077444021285&w=2
Otherwise, it is quite common to run into audit noise when the init script or daemon tries to access the cwd.
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.