Bugzilla – Bug 1204333
syslog-ng: Error opening file for writing; filename='/dev/tty1', error='Permission denied (13)'
Last modified: 2023-03-10 09:39:00 UTC
Yesterday I updated my Tumbleweed machine after a few weeks of vacation. Since then I get this error message every so often: syslog-ng: Error opening file for writing; filename='/dev/tty1', error='Permission denied (13)' I checked the syslog-ng apparmor file, but it still contains /dev/tty1 rw, ls -l /dev/tty1 crw--w---- 1 root tty 4, 1 Oct 15 12:43 /dev/tty1 I'm not sure, if and how the permissions for /dev/tty1 have been changed, though. They seem to be identical on other machines, where syslog doesn't give that error message.
any audit DENIED records from apparmor for this path? /var/log/audit/audit.log
yes: type=AVC msg=audit(1665843310.952:325): apparmor="DENIED" operation="open" profile="syslog-ng" name="/dev/tty1" pid=8417 comm="syslog-ng" requested_mask="ac" denied_mask="ac" fsuid=0 ouid=0
So what to do with this problem? aa-logprof doesn't list it despite the according autdit.log lines.