Fix apt.conf permissions
Having world-writable apt.conf may be exploited by locals users to execute arbitrary code in the context of the user running mmdebstrap.
This commit is contained in:
parent
55cae49ec7
commit
a719ffd20a
1 changed files with 1 additions and 1 deletions
|
@ -2265,7 +2265,7 @@ sub run_setup() {
|
||||||
# we have to make the config file world readable so that a possible
|
# we have to make the config file world readable so that a possible
|
||||||
# /usr/lib/apt/solvers/apt process which is run by the _apt user is also
|
# /usr/lib/apt/solvers/apt process which is run by the _apt user is also
|
||||||
# able to read it
|
# able to read it
|
||||||
chmod 0666, "$tmpfile" or error "cannot chmod $tmpfile: $!";
|
chmod 0644, "$tmpfile" or error "cannot chmod $tmpfile: $!";
|
||||||
if ($verbosity_level >= 3) {
|
if ($verbosity_level >= 3) {
|
||||||
0 == system('apt-get', '--version')
|
0 == system('apt-get', '--version')
|
||||||
or error "apt-get --version failed: $?";
|
or error "apt-get --version failed: $?";
|
||||||
|
|
Loading…
Reference in a new issue