Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: chroot uses resolv.conf from host. Privilege escalation? (Read 1045 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

chroot uses resolv.conf from host. Privilege escalation?

Hello,

since a couple of days arch-chroot always uses
resolv.conf from the host system.

There are no symbolic links.

This happens when I chroot into every Arch or Artix chroot.
That means it has something to do with my Artix installation.

uname -a in every chroot environment shows me exakt the same:
Linux localhost 4.15.5-1-ARTIX #1 SMP PREEMPT Sat Feb 24 08:55:15 UTC 2018 x86_64 GNU/Linux


This behavior does not occur in a fresh Arch Linux installation.
It was also not present at the beginning of my Artix live.



Maybe this issue correlates with the failure
I have to install packages in chroot?



Any help/fix for debugging would be very appreciate.


I could try to debug this and go back to a previous installation with
an entry in /etc/pacman.conf

In Arch I can do:
Server=https://archive.archlinux.org/repos/2017/09/01/$repo/os/$arch

What can I enter in Artix?



Re: chroot uses resolv.conf from host. Privilege escalation?

Reply #1
This is normal. resolv.conf is needed from the host machine to provide networking. Even with arch linux they use the hosts resolv.con:
https://git.archlinux.org/arch-install-scripts.git/tree/arch-chroot.in#n22

As far as going back to a previous date with your packages, artix does not currently have that. Arch Linux has a separate special server with old packages to do that. We don't have a server we can use for that currently.
Chris Cromer

Re: chroot uses resolv.conf from host. Privilege escalation?

Reply #2
Ah, okay. Than I had a failure in another chroot and
on another host where
the resolv.conf was not the same as on the host system.

Thank you for the link to the install script!


Shall I add [solved] to the title somewhere?

 

Re: chroot uses resolv.conf from host. Privilege escalation?

Reply #3
There is a button in the topic that says "solve topic". Click that and it will mark this as solved.
Chris Cromer