30 Dec
2014
30 Dec
'14
1:36 p.m.
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?