-
Notifications
You must be signed in to change notification settings - Fork 196
ENT-13535: Added packages promiser sanitation #5967
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
base: master
Are you sure you want to change the base?
Conversation
|
@cf-bottom Jenkins with exotics please :) |
|
Sure, I triggered a build: (with exotics) Jenkins: https://ci.cfengine.com/job/pr-pipeline/13092/ Packages: http://buildcache.cfengine.com/packages/testing-pr/jenkins-pr-pipeline-13092/ |
|
@cf-bottom Jenkins with exotics please :) |
|
Sure, I triggered a build: (with exotics) Jenkins: https://ci.cfengine.com/job/pr-pipeline/13093/ Packages: http://buildcache.cfengine.com/packages/testing-pr/jenkins-pr-pipeline-13093/ |
|
^ Known failure ENT-12953 |
craigcomstock
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
| * # Comment character, can truncate commands | ||
| * \n \r Newlines can inject additional commands | ||
| */ | ||
| const char *shell_metacharacters = ";|&`$(){}[]<>!#*?~\\'\"\n\r"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@olehermanse maybe this is too strict?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I do think the tilde is likely too strict and needed for some package names. I remember @nickanderson mentioning it I think. I checked OpenBSD and Debian and your list seems fine for those based on a simple package name search, but not on the other ways to specify package names with meta information maybe like versions and such.
Maybe a better way here is to have a default in C code that is maybe too strict and add a common attribute that can override that default so folks can make a choice without changing C code.
Ticket: ENT-13535 Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
Ticket: ENT-13535
Signed-off-by: Lars Erik Wik lars.erik.wik@northern.tech
Backported to: