Re: Hook scripts start with an empty environment
From: Tim Starling <tstarling_at_wikimedia.org>
Date: Wed, 24 Mar 2010 22:56:08 +1100
Bert Huijben wrote:
You mean if the repository is accessed via the svn or http transports?
> I'm a bit surprised that you actually see a passphrase prompt from a hook, as the hook environment redirects stdin, stdout and stderr to the server process. The only prompt you should be able to see is the prompt for starting the ssh process.
I believe ssh opens the controlling terminal directly. But that's beside
> (And this ssh isn't called via the function you tried to patch)
The hook script calls ssh. The function I patched calls the hook script.
> If we would forward the environment hook scripts, the scripts might accidentally use environment variables from the calling process without the user knowing. Which opens a backdoor for all kinds of malware/abusal. And it would also make it very hard to create hook scripts that work identical for all repository users.
What sort of backdoor malware abusal exactly? Whatever this problem is,
Anyway, I'm not really too concerned. It can be configurable or
-- Tim Starling
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.