-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ccm warning about Insecure $ENV{ENV} #201
Comments
@ned21 perl version? what OS and what exact package version? |
$ /usr/bin/perl -v This is perl 5, version 16, subversion 3 (v5.16.3) built for x86_64-linux-thread-multi $ cat /etc/redhat-release $ rpm -q ccm perl-LC |
|
@ned21 any chance you can try more recent ccm? |
From
Our standard profile setup does utilize |
... the only question is, should that be done in all Quattor utilities, or should it be done unconditionally in LC::Process. |
Hmm, |
@gombasg yep, that's it
quick hack:
i'd rather not touch LC, and we already do some ENV sanitisation in other places. we should do a better job imho |
$ ccm --version
Insecure $ENV{ENV} while running with -T switch at /usr/lib/perl/LC/Process.pm line 475.
This is ccm version 18.3.0
$ ccm /system/personality/host_environment 2>/dev/null
Insecure $ENV{ENV} while running with -T switch at /usr/lib/perl/LC/Process.pm line 475.
$ host_environment : 'dev'
This makes it difficult to use ccm in scripts. Looking at the ccm code, it looks like we sanitise $PATH so I'm not sure what's happening here - do we need to clear the environment entirely?
27 # minimal Path
28 $ENV{PATH} = join(":", qw(/bin /usr/bin /sbin /usr/sbin));
The text was updated successfully, but these errors were encountered: