[arch-general] Opening symlinks in tmpfs as root fails!
Mohammad_AlSaleh
ce.mohammad.alsaleh at gmail.com
Tue Dec 30 12:36:44 UTC 2014
Hello.
I just came across some weird behavior.
A small testcase:
cd /tmp # should be tmpfs
touch tfile
ln -s tfile tlink
cat tlink
When cat executes, it returns with success(0). But, if cat is executed
as root, it fails with a permission denied error.
What's really happening is, the open() syscall fails with EACCESS when
the file is a symlink in a tmpfs-mounted dir. But only fails when run
as root!
I'm assuming this is a bug. Can anyone confirm it?
More information about the arch-general
mailing list