Using a non-root user, I'm creating a pseudo terminal with socat like this:
socat -d -d PTY,link=$HOME/.wine/dosdevices/com1,raw,echo=0 PTY,link=/tmp/com1-pty,raw,echo=0
and I need a root application to open this
/tmp/com1-pty. Any attempt to do this results in a permission denied and the following syslog message:
Feb 10 17:21:06 ti0085 kernel: [ 590.692819] type=1702 audit(1392060065.998:1004788): op=follow_link action=denied pid=6091 comm="menu" path="/tmp/com1-pty" dev="sda1" ino=48758820
I have tried many things, including setting permissions for both
/tmp/com1-pty and the device to witch it links to 777. Also I have added root to dialout group - even though I don't believe it would make any difference, for I would expect the root to be able to open anything.
What I'm doing wrong?