[arch-general] Opening symlinks in tmpfs as root fails!

2014-12-30 Thread Mohammad_AlSaleh
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()

Re: [arch-general] Opening symlinks in tmpfs as root fails!

2014-12-30 Thread Christian Hesse
Mohammad_AlSaleh ce.mohammad.alsa...@gmail.com on Tue, 2014/12/30 14:36: 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

Re: [arch-general] Opening symlinks in tmpfs as root fails!

2014-12-30 Thread Mohammad_AlSaleh
On Tue, Dec 30, 2014 at 01:42:03PM +0100, Christian Hesse wrote: Mohammad_AlSaleh ce.mohammad.alsa...@gmail.com on Tue, 2014/12/30 14:36: Hello. I just came across some weird behavior. A small testcase: cd /tmp # should be tmpfs touch tfile ln -s tfile tlink cat tlink

Re: [arch-general] Opening symlinks in tmpfs as root fails!

2014-12-30 Thread Christian Hesse
Christian Hesse l...@eworm.de on Tue, 2014/12/30 13:42: Mohammad_AlSaleh ce.mohammad.alsa...@gmail.com on Tue, 2014/12/30 14:36: 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

Re: [arch-general] Opening symlinks in tmpfs as root fails!

2014-12-30 Thread Mohammad_AlSaleh
On Tue, Dec 30, 2014 at 02:02:32PM +0100, Christian Hesse wrote: Christian Hesse l...@eworm.de on Tue, 2014/12/30 13:42: Mohammad_AlSaleh ce.mohammad.alsa...@gmail.com on Tue, 2014/12/30 14:36: Hello. I just came across some weird behavior. A small testcase: cd /tmp #