Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 229724 - Can't change brightness due to SELinux policy on HAL scripts
Can't change brightness due to SELinux policy on HAL scripts
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Daniel Walsh
Ben Levenson
Depends On:
Blocks: 227501
  Show dependency treegraph
Reported: 2007-02-22 17:59 EST by Bastien Nocera
Modified: 2007-11-30 17:11 EST (History)
1 user (show)

See Also:
Fixed In Version: Current
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-09-12 13:08:05 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 Bastien Nocera 2007-02-22 17:59:16 EST

Trying to change the brightness on the desktop, using gnome-power-manager, I get
avc errors with selinux in enforcing mode.

Feb 22 22:55:30 randel kernel: audit(1172184930.763:333): avc:  denied  { write
} for  pid=2053 comm="hal-system-lcd-" name="sonypi" dev=proc ino=-268434518
scontext=user_u:system_r:hald_t:s0 tcontext=system_u:object_r:sysctl_irq_t:s0

$ ls -lZ /dev/sonypi 
crw-------  root root system_u:object_r:device_t       /dev/sonypi
$ ls -lZ /usr/lib/hal/scripts/linux/hal-system-lcd-*
-rwxr-xr-x  root root system_u:object_r:lib_t         
-rwxr-xr-x  root root system_u:object_r:lib_t         
$ ls -lZ /usr/lib/hal/scripts/hal-system-lcd-*
-rwxr-xr-x  root root system_u:object_r:lib_t         
-rwxr-xr-x  root root system_u:object_r:lib_t         

$ cat /etc/sysconfig/selinux 
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#       enforcing - SELinux security policy is enforced.
#       permissive - SELinux prints warnings instead of enforcing.
#       disabled - SELinux is fully disabled.
# SELINUXTYPE= type of policy in use. Possible values are:
#       targeted - Only targeted network daemons are protected.
#       strict - Full SELinux protection.

# SETLOCALDEFS= Check local definition changes
Comment 1 Daniel Walsh 2007-03-20 12:00:38 EDT
Fixed in selinux-policy-2.4.6-46
Comment 2 Daniel Walsh 2007-09-12 13:08:05 EDT
Moving modified bugs to closed

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