Chrome Version: 71.0.3578.57 (nocturne)
OS: Chrome
What steps will reproduce the problem?
1. Copy rar file to Downloads folder.
2. Open rar file.
What is the expected result?
RAR is mounted and contents can be viewed.
What happens instead?
Error dialog is shown with "error_internal" error.
The following is seen in logs:
2018-11-15T22:40:13.837970+00:00 ERR cros-disks[1880]: Failed to get real path of '/home/chronos/u-bc6594a644749cf3a3a99c1a0e47c4bc0e5da07f/Downloads/Wall/sample.rar': Permission denied
2018-11-15T22:40:13.839227+00:00 ERR cros-disks[1880]: Failed to mount '/run/avfsroot/users/u-bc6594a644749cf3a3a99c1a0e47c4bc0e5da07f/Downloads/Wall/sample.rar#urar' '/media/archive/sample.rar' '' 4110 '': Permission denied
2018-11-15T22:40:13.839280+00:00 ERR cros-disks[1880]: Failed to mount '/run/avfsroot/users/u-bc6594a644749cf3a3a99c1a0e47c4bc0e5da07f/Downloads/Wall/sample.rar#urar' to '/media/archive/sample.rar' as filesystem '' with options 'bind,rw,nodev,noexec,nosuid'
2018-11-15T22:40:13.839316+00:00 ERR cros-disks[1880]: Failed to mount path '/home/chronos/u-bc6594a644749cf3a3a99c1a0e47c4bc0e5da07f/Downloads/Wall/sample.rar'
2018-11-15T22:40:13.839376+00:00 ERR cros-disks[1880]: Failed to mount '/home/chronos/u-bc6594a644749cf3a3a99c1a0e47c4bc0e5da07f/Downloads/Wall/sample.rar'
Inspecting the directory structure of a local test nocturne (running 72) shows ~/Downloads is owned by 'chronos:chronos' with 0710 permissions. On chell, it's owned by 'chronos:chronos-access' with 0710. cros-disks is in the 'chronos-access' group, and hence it can execute every path leading up to the file on the chell, but not on the nocturne. The execute permission is needed for realpath to succeed, and I suspect it's also necessary for either mounting or AVFS.
Comment 1 by amistry@chromium.org
, Dec 18