On 04.10.10 16:53, Самусенко Андрей wrote:
Hi.

setuid/setgid is needed to
decrease rights? If so, then we cannot write the pid file in
/var/run: "Permission denied'

Changing of the call order
setuid() and write_pid_file() soves the problem.



And what happens then when SEMS is trying to unlink the file as it exits?
In my opinion, the correct way is to choose a path to which the runtime user is allowed to write.

Cheers
Raphael.


_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to