Artix Linux Forum

Artix Linux => System => Topic started by: 3la on 04 March 2018, 12:22:21

Title: chroot uses resolv.conf from host. Privilege escalation?
Post by: 3la on 04 March 2018, 12:22:21
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?


Title: Re: chroot uses resolv.conf from host. Privilege escalation?
Post by: Chris Cromer on 04 March 2018, 16:23:00
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 (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.
Title: Re: chroot uses resolv.conf from host. Privilege escalation?
Post by: 3la on 04 March 2018, 16:49:23
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?
Title: Re: chroot uses resolv.conf from host. Privilege escalation?
Post by: Chris Cromer on 04 March 2018, 16:55:06
There is a button in the topic that says "solve topic". Click that and it will mark this as solved.