Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
assignee=Noneclosed_at=<Date2017-11-12.17:03:40.042>created_at=<Date2017-01-06.16:31:35.929>labels= ['3.7', 'type-bug', 'tests']
title='skip tests that raise PermissionError in test_tarfile (non-root user on Android)'updated_at=<Date2017-11-12.17:03:40.041>user='https://github.com/xdegaye'
Why os.link() is failed? If hard links are not supported on Android, shouldn't os.link be not implemented? tarfile try to make a copy of the referenced file instead of a link if a link can't be created.
Why os.link() is failed? If hard links are not supported on Android, shouldn't os.link be not implemented?
Android has a restrictive security model based on SELinux .
With the Android adb shell on the emulator at API level 24:
$ ln foo bar
ln: cannot create hard link from 'foo' to 'bar': Permission denied
# ln foo bar# ls -li foo bar
15688 -rw-rw-rw- 2 shell shell 0 2017-01-07 22:29 bar
15688 -rw-rw-rw- 2 shell shell 0 2017-01-07 22:29 foo