fix fedora tty with apparmor

Fix #4358

ping @creack