-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
lxc: 2.0.4 -> 2.0.6 (security) #20766
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
Conversation
@avnik, thanks for your PR! By analyzing the history of the files in this pull request, we identified @7c6f434c, @wkennington and @peti to be potential reviewers. |
@@ -57,6 +57,7 @@ stdenv.mkDerivation rec { | |||
installFlags = [ | |||
"localstatedir=\${TMPDIR}" | |||
"sysconfdir=\${out}/etc" | |||
"bashcompdir=\${out}/etc/bash_completion.d" |
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.
Bash completion files should no longer go to etc
since these are no configuration files. Instead, $out/share/bash-completion/completions/lxc
would be the proper place.
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.
For future security PRs, please make the minimum change necessary to get it fixed, then a separate PR (or commit) of the improvements
0055bd9
to
dc2b1b7
Compare
Well, I am finally swapped them |
@avnik, well, I am on IRC, but apparently I did not see your question. |
@@ -58,6 +58,7 @@ stdenv.mkDerivation rec { | |||
"localstatedir=\${TMPDIR}" | |||
"sysconfdir=\${out}/etc" | |||
"sysconfigdir=\${out}/etc/default" | |||
"bashcompdir=\${out}/etc/bash_completion.d" |
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.
Please put bash completion files into $out/share/bash-completion/completions
, not into $out/etc/bash_completion.d
.
@peti Fixed again, it strike back as rebase artifact |
@@ -58,6 +58,7 @@ stdenv.mkDerivation rec { | |||
"localstatedir=\${TMPDIR}" | |||
"sysconfdir=\${out}/etc" | |||
"sysconfigdir=\${out}/etc/default" | |||
"bashcompdir=\${out}/share/bash-completion/completions/lxc" |
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.
The directory is $out/share/bash-completion/completions
, not $out/share/bash-completion/completions/lxc
.
Package attempt to write /etc/bash_completion.d, I directed it to "${out}/etc/bash_completion.d" as it was suggested.
@peti |
@avnik, that path referred to the completion file that lxc would install. |
Motivation for this change
Update to fix CVE-2016-8649
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)https://security-tracker.debian.org/tracker/CVE-2016-8649
Also fix chrooted build (attempt write to /etc/bash_completion.d)