Force uid 0 to files

This commit is contained in:
nemunaire 2020-03-29 16:12:50 +02:00
parent 41b1d950e1
commit 4d7e5a5331

View File

@ -9,12 +9,16 @@ files:
- path: etc/hostname - path: etc/hostname
contents: | contents: |
adlin2 adlin2
uid: 0
gid: 0
mode: "0644" mode: "0644"
- path: etc/resolv.conf - path: etc/resolv.conf
contents: | contents: |
nameserver 9.9.9.9 nameserver 9.9.9.9
nameserver 1.1.1.1 nameserver 1.1.1.1
uid: 0
gid: 0
mode: "0644" mode: "0644"
- path: etc/systemd/network/49-main.link - path: etc/systemd/network/49-main.link
@ -23,6 +27,8 @@ files:
OriginalName=eth0 OriginalName=eth0
[Link] [Link]
Name=eth0 Name=eth0
uid: 0
gid: 0
mode: "0644" mode: "0644"
- path: etc/systemd/network/50-dhcp.network - path: etc/systemd/network/50-dhcp.network
@ -33,6 +39,8 @@ files:
DHCP=yes DHCP=yes
IPv6AcceptRA=no IPv6AcceptRA=no
LinkLocalAddressing=no LinkLocalAddressing=no
uid: 0
gid: 0
mode: "0644" mode: "0644"
- path: init - path: init
@ -148,12 +156,16 @@ files:
# To the user # To the user
exec /usr/sbin/chroot . "${INITP}" exec /usr/sbin/chroot . "${INITP}"
uid: 0
gid: 0
mode: "0755" mode: "0755"
# - path: etc/systemd/system/systemd-networkd.service.d/10-debug.conf # - path: etc/systemd/system/systemd-networkd.service.d/10-debug.conf
# contents: | # contents: |
# [Service] # [Service]
# Environment=SYSTEMD_LOG_LEVEL=debug # Environment=SYSTEMD_LOG_LEVEL=debug
# uid: 0
# gid: 0
# mode: "0644" # mode: "0644"
- path: etc/shadow - path: etc/shadow
@ -181,6 +193,8 @@ files:
systemd-network:*:18333:0:99999:7::: systemd-network:*:18333:0:99999:7:::
systemd-resolve:*:18333:0:99999:7::: systemd-resolve:*:18333:0:99999:7:::
sshd:*:18333:0:99999:7::: sshd:*:18333:0:99999:7:::
uid: 0
gid: 0
mode: "0640" mode: "0640"
trust: trust: