login: clear dangerous environment variables if started by non-root

This commit is contained in:
Denis Vlasenko
2007-11-06 05:26:51 +00:00
parent 6bef3d1d22
commit 5281630229
4 changed files with 42 additions and 25 deletions

View File

@ -623,6 +623,8 @@ enum {
#endif
void bb_daemonize_or_rexec(int flags, char **argv);
void bb_sanitize_stdio(void);
/* Clear dangerous stuff, set PATH */
void sanitize_env_for_suid(void);
extern const char *opt_complementary;