netboot: adjust SMACK label for /etc/resolv.conf 73/21873/2
authorStephane Desneux <stephane.desneux@iot.bzh>
Fri, 12 Jul 2019 17:13:35 +0000 (17:13 +0000)
committerStephane Desneux <stephane.desneux@iot.bzh>
Fri, 12 Jul 2019 17:18:01 +0000 (17:18 +0000)
commitc093cea571affbb07b9a4c27fa344689becc1f79
tree1696c732211e7ed04964b6ca2b035f533519d483
parent7f34f6d4346f09b0e7cd72518f30ba2c39f6eade
netboot: adjust SMACK label for /etc/resolv.conf

When using netboot, the kernel is responsible for establishing the IP connection.
For this reason, connman is instructed to "forget" this boot interface and
/etc/resolv.conf is generated by the initrd script (from /proc/net/pnp).

This patch removes the previously set SMACK label 'System' so file has label _,
which makes it readable by any process.

Bug-AGL: SPEC-2640

Change-Id: I13704827434a795aab2264755dc01ec796be8847
Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
meta-netboot/recipes-core/initramfs-netboot/files/init.sh