Dear Maintainers,

package: live-boot
version: 20180603

When I add the following entries to the persistence.conf file on a
live-boot system and reboot, the permissions and/or ownership of the
original directory appears to be modified:

/root        union
/var/lib/ntp union

After the reboot the directories have the following attributes (note /root
is now world-readable!):

drwxr-xr-x 1 root root 4096 Jan 10 12:14 /root
drwxr-xr-x 1 root root 4096 Jan 14 15:55 /var/lib/ntp

...when the original attributes were:

drwx------ 1 root root 4096 Jan 10 12:14 /root
drwxr-xr-x 1 ntp  ntp  4096 Jan 14 15:55 /var/lib/ntp

And the attributes of the corresponding unionfs upperdir "rw" directories
are:

drwxr-xr-x 4 root root 4096 Jan 10 12:14
/lib/live/mount/persistence/sda3/root/rw
drwxr-xr-x 4 root root 4096 Jan 10 12:14
/lib/live/mount/persistence/sda3/var/lib/ntp/rw

...when they should be:

drwx------ 4 root root 4096 Jan 10 12:14
/lib/live/mount/persistence/sda3/root/rw
drwxr-xr-x 4 ntp  ntp  4096 Jan 10 12:14
/lib/live/mount/persistence/sda3/var/lib/ntp/rw

I suggest that this be fixed by updating the "do_union" function in
9990-misc-helpers.sh to set the attributes of the "rw" subdirectory of
"${unionrw}" to be the same as the attributes of the parent "${unionrw}"
directory, which appear to be created with the correct ownership and
permissions.

I am using live-boot-initramfs-tools 20180603

Regards,
Andy

-- 
CONFIDENTIALITY NOTICE: This email and any attachments are for the sole use 
of the intended recipient and may contain material that is proprietary, 
confidential, privileged or otherwise legally protected or restricted under 
applicable government laws. Any review, disclosure, distributing or other 
use without expressed permission of the sender is strictly prohibited. If 
you are not the intended recipient, please contact the sender and delete 
all copies without reading, printing, or saving. 

Reply via email to