Comment 2 for bug 1497311

Revision history for this message
LaƩrcio de Sousa (lbssousa) wrote : Re: guest-account: consider union-mounting /etc/{,guest-session/}skel, instead of copying it over

Robert,

Both OverlayFS and AuFS support a feature called *whiteout*. Consider we mount e.g. /tmp/guest-XXXX as a union of /tmp/.rw-guest-XXXX (read-write) on top of /etc/guest-session/skel (read-only). Whenever we remove a file/dir in /tmp/guest-XXXX which, in fact, resides on /etc/guest-session/skel, a whiteout record for this one is marked in /tmp/.rw-guest-XXXX, so that OverlayFS/AuFS keeps track of removal intention and hides this one from /tmp/guest-XXXX union, as if it was actually removed.