• Jeff Sharkey's avatar
    Null-terminate readlink() result, full remount. · c7b5b570
    Jeff Sharkey authored
    In order to compare results from readlink() calls, we need to null
    terminate the read value, otherwise we can end up doing an infinitely
    recursive remount in the root namespace.
    
    When remounting inside a namespace, unmount all existing mounts before
    mounting the new storage into place.  This also means we need to mount
    the user-specific symlinks back into place.
    
    Skip spinning up the FUSE daemon when not visible, otherwise we get
    stuck waiting for a daemon that never shows up.
    
    Bug: 22192518, 22204412
    Change-Id: Icc7db822354ab7ffc47c39cd0611f65edecc32e5
    c7b5b570
PublicVolume.cpp 6.5 KB