#720163 s-s-d: Should clean up environment

Package:
dpkg
Source:
dpkg
Description:
Debian package management system
Submitter:
Klaus Ethgen
Date:
2015-03-29 00:03:21 UTC
Severity:
normal
#720163#5
Date:
2013-08-19 09:46:14 UTC
From:
To:
To have a reproducible daemon, the daemons started by start-stop-daemon
should have cleaned environment, for example the language environments
LANG and LC_*.

Not doing so ends in strange behaviour of the daemons depending which
admin with different personal language settings started it.

Namely that is:
- LC_*
- LANG*
- *LOCALE
- evtl. LD_LIBRARY_PATH
- TZ
- ...

Some of the environments get used by sshd from the client machine if one
logs in by ssh.

The best would be to have a fully controlled environment for daemons.
But this would be a big step.

#720163#10
Date:
2013-08-19 10:52:12 UTC
From:
To:
Hi!

I see the problem and I agree that something should be done about it,
but as I mentioned in [0], I don't think the right place to plug a
global distribution environment policy is s-s-d, because using it is
not required by the debian-policy and as such some daemons might not
be using it to start.

  <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=631081#58>

Adding support for some kind of controls on the process environment to
s-s-d might make sense, but not in the way you present here.

Thanks,
Guillem

#720163#15
Date:
2013-08-19 11:02:27 UTC
From:
To:
Moin,

Am Mo den 19. Aug 2013 um 11:52 schrieb Guillem Jover:

Where is that [0]?

It might not be but it could be a good place for it.

Is this the [0]?

Well, it is just a first Idea to get around such bugs. I have no
solutions at the moment. For my company I created a job scheduler in
perl that is cleaning up the environment and taking full control over
it. This might be no good idea for s-s-d, but somewhat in between ...

Regards
   Klaus