Bugzilla will be upgraded to version 5.0 on December 2, 2018. The outage period for the upgrade will start at 0:00 UTC and have a duration of 12 hours
Bug 216006 - selinux-policy-targeted blocks 915resolution on Resume from Hibernate
selinux-policy-targeted blocks 915resolution on Resume from Hibernate
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Daniel Walsh
Ben Levenson
Depends On:
  Show dependency treegraph
Reported: 2006-11-16 14:28 EST by James Ettle
Modified: 2007-11-30 17:11 EST (History)
2 users (show)

See Also:
Fixed In Version: 2.4.6-46.fc6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-04-02 12:46:56 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description James Ettle 2006-11-16 14:28:52 EST
Description of problem:
SELinux with Enforcing prevents 915resolution from patching the video BIOS when
resuming from hibernation. This means I lose widescreen mode on my notebook.

I have modified /etc/pm/functions-intel to read

	/usr/sbin/vbetool post
        /usr/sbin/915resolution 3c 1280 768 >/dev/null 2>&1
#	/usr/sbin/vbetool vbestate restore < /var/run/vbestate
} >/dev/null 2>&1

so that the patch is called on resume. I don't know if this is the correct place
to put it, but it works when enforcing is disabled.

Raw audit message:
avc: denied { read, write } for comm='"915resolution"' dev='tmpfs' egid='0'
euid='0' exe='"/usr/sbin/915resolution"' exit='-13' fsgid='0' fsuid='0' gid='0'
items='0' name='"mem"' pid='4778' scontext=system_u:system_r:hald_t:s0 sgid='0'
subj='system_u:system_r:hald_t:s0' suid='0' tclass='chr_file'
tcontext=system_u:object_r:memory_device_t:s0 tty='(none)' uid='0' 

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Modify /etc/pm/functions-intel (see above) to patch the VBIOS.
2. Hibernate.
3. Resume.
Actual results:
Adapter has forgotten patched mode (1280x768), drops down to built-in (1024x768).

Expected results:
No AVC denial.
Comment 1 Daniel Walsh 2007-02-14 10:05:09 EST
Fixed in selinux-policy-2.4.6-37

Note You need to log in before you can comment on or make changes to this bug.