Re: Bug#179125: maintainer scripts tries to exec script in /tmp
On Tue, 4 Feb 2003 00:29, Oliver Elphick wrote:
> That is because I responded to Russell Coker's wishes for SELinux!
>
> What I used to do was 'su - postgres -c "command ..."'.
>
> Russell complained that this wouldn't work with SELinux's security and
> that I should use start-stop-daemon instead. In order to do that, I
> have to give it a script to run; otherwise I can't feed a sequence of
> commands to one run of start-stop-daemon.
Couldn't you have start-stop-daemon run a shell script in /usr/sbin that uses
parameters or environment variables or whatever it takes to do the job?
You could take the original init script, remove the "su" bits, put it in
/usr/sbin and then have it called by the new init script.
--
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/ Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/ My home page
Reply to: