Bug 236394
Summary: | /usr/lib/pm-utils/sleep.d/60sysfont: line 7: /dev/tty0: Permission denied | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Zack Cerza <zcerza> |
Component: | pm-utils | Assignee: | Till Maas <opensource> |
Status: | CLOSED RAWHIDE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | rawhide | CC: | liblit, pjones, pknirsch, richard, triage |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | bzcl34nup | ||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2008-04-04 15:05:10 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Zack Cerza
2007-04-13 15:52:24 UTC
pjones, is this code even present anymore? % grep sysfont /usr/lib/pm-utils/sleep.d/60sysfont setsysfont </dev/tty0 ;; % rpm -q pm-utils pm-utils-0.99.3-6.fc7.i686 Do you have any idea, why this happens? It works fine for me. Hm, /etc/rc.d/rc.sysinit has this code: 231 if [ -x /sbin/setsysfont -a -c /dev/tty1 ]; then 232 /sbin/setsysfont < /dev/tty1 > /dev/tty1 2>/dev/null 233 fi I guess I will change the hook in pm-utils to this, too. The previous hook was copied from /etc/rc.d/rc.sysinit, too. I'm seeing the same logged error message on my desktop box. I see it when resuming from either suspend or hibernate. My environment: Fedora 7 gnome-power-manager-2.18.3-1.fc7 pm-utils-0.99.3-6.fc7 hal-0.5.9-8.fc7 kernel-2.6.22.5-76.fc7 To try to understand why permission is being denied, I modified 60sysfont to run two additional commands just before setsysfont: id -a ls --lcontext /dev/tty0 setsysfont </dev/tty0 ;; This yields the following output: uid=0(root) gid=0(root) context=system_u:system_r:hald_t crw-rw---- 1 system_u:object_r:tty_device_t root root 4, 0 Sep 23 00:34 /dev/tty0 /usr/lib/pm-utils/sleep.d/60sysfont: line 9: /dev/tty0: Permission denied I don't understand all of the security context stuff, but from a traditional Unix permissions perspective it certainly looks like setsysfont ought to be able to read /dev/tty0. I'm stumped. Do you use selinux? When selinux prevents access, there should be a line about it in /var/log/messages. I use the SELinux targeted policy. I have inspected /var/log/messages and I see no SELinux audit messages around the relevant time. It's pretty easy to look for these, since both /var/log/messages and /var/log/pm-suspend.log have timestamps. So I'm pretty confident that I would have seen an SELinux audit message if one were present. Based on the date this bug was created, it appears to have been reported against rawhide during the development of a Fedora release that is no longer maintained. In order to refocus our efforts as a project we are flagging all of the open bugs for releases which are no longer maintained. If this bug remains in NEEDINFO thirty (30) days from now, we will automatically close it. If you can reproduce this bug in a maintained Fedora version (7, 8, or rawhide), please change this bug to the respective version and change the status to ASSIGNED. (If you're unable to change the bug's version or status, add a comment to the bug and someone will change it for you.) Thanks for your help, and we apologize again that we haven't handled these issues to this point. The process we're following is outlined here: http://fedoraproject.org/wiki/BugZappers/F9CleanUp We will be following the process here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping to ensure this doesn't happen again. Haven't seen this in F9-rawhide. |