[Bug 235185] www/fcgiwrap: environment should be cleaned in /usr/local/etc/rc.d/fcgiwrap

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Bug 235185] www/fcgiwrap: environment should be cleaned in /usr/local/etc/rc.d/fcgiwrap

bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235185

--- Comment #30 from [hidden email] ---
(In reply to Rodney W. Grimes from comment #19)
> If you are calling this exporting of the environment a feature of fcgiwrap then us revoking the environment with env -i would be removing an authors inteded feature.

We are already doing that, albeit in an inconsistent manner: we clean the
environment in /usr/sbin/service and not clean when running rc.d scripts
directly). Now that I think of it, I see the major problem being this
inconsistency.

And guys, before you start coding, please remember that login.conf and other
environment variable assignments probably should go _after_ the initial
environment sanitation. So first you cut off whatever is inherited from the
invoker's environment (like it is done in /usr/sbin/service) and then you
assign the necessary variables in the rc.d script already.

--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-rc
To unsubscribe, send any mail to "[hidden email]"