I am currently running RHEL 5 update 1 with the MLS
policy. The issue that I am now having is that in our code we
switched over from using runcon to newrole. The newrole command is
executed from within our application that is running in the background, so no
TTY. Which is the problem. Newrole bombs because there is no tty, the call that “fails”
is ttyname(0). Any suggestions on a workaround or fix? I have created a test set of scripts to duplicate the issue foo.sh ########################## #!/bin/bash #show the current tty name printf “caller tty: “ tty ./bar.sh & ########################## bar.sh ########################## #!/bin/bash #show the current tty name printf “newrole tty: “ tty newrole –l SystemHigh -- -c “ls
/var” ########################## Thanks, Tim |