FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 06-07-2011, 01:46 PM
Lawrence E Graves
 
Default SELinux is preventing /usr/libexec/gnome-session-check-accelerated-helper from 'read, write' accesses on the chr_file nvidiactl.

SELinux is preventing /usr/libexec/gnome-session-check-accelerated-helper from 'read, write' accesses on the chr_file nvidiactl.

***** Plugin device (91.4 confidence) suggests *****************************

If you want to allow gnome-session-check-accelerated-helper to have read write access on the nvidiactl chr_file
Then you need to change the label on nvidiactl to a type of a similar device.
Do
# semanage fcontext -a -t SIMILAR_TYPE 'nvidiactl'
# restorecon -v 'nvidiactl'

***** Plugin catchall (9.59 confidence) suggests ***************************

If you believe that gnome-session-check-accelerated-helper should be allowed read write access on the nvidiactl chr_file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep gnome-session-c /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Context system_ubject_r:device_t:s0
Target Objects nvidiactl [ chr_file ]
Source gnome-session-c
Source Path /usr/libexec/gnome-session-check-accelerated-
helper
Port <Unknown>
Host Jehovah.localdomain
Source RPM Packages gnome-session-3.0.1-2.fc15
Target RPM Packages
Policy RPM selinux-policy-3.9.16-26.fc15
Selinux Enabled True
Policy Type targeted
Enforcing Mode Enforcing
Host Name Jehovah.localdomain
Platform Linux Jehovah.localdomain 2.6.38.7-30.fc15.x86_64
#1 SMP Fri May 27 05:15:53 UTC 2011 x86_64 x86_64
Alert Count 5
First Seen Mon 06 Jun 2011 06:40:55 AM MDT
Last Seen Tue 07 Jun 2011 05:20:46 AM MDT
Local ID e2321259-3895-45f0-8eaa-1d2294ce8e89

Raw Audit Messages
type=AVC msg=audit(1307445646.599:49): avc: denied { read write } for pid=1630 comm="gnome-session-c" name="nvidiactl" dev=devtmpfs ino=15320 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_ubject_r:device_t:s0 tclass=chr_file


type=SYSCALL msg=audit(1307445646.599:49): arch=x86_64 syscall=open success=no exit=EACCES a0=7fff4eae8860 a1=2 a2=7fff4eae886e a3=7fff4eae81f0 items=0 ppid=1623 pid=1630 auid=4294967295 uid=42 gid=42 euid=42 suid=42 fsuid=42 egid=42 sgid=42 fsgid=42 tty=(none) ses=4294967295 comm=gnome-session-c exe=/usr/libexec/gnome-session-check-accelerated-helper subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)

Hash: gnome-session-c,xdm_t,device_t,chr_file,read,write

audit2allow

#============= xdm_t ==============
allow xdm_t device_t:chr_file { read write };

audit2allow -R

#============= xdm_t ==============
allow xdm_t device_t:chr_file { read write };


--
Lawrence E Graves <lgraves@risingstarmbc.com>

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 06-07-2011, 09:22 PM
Mark Eggers
 
Default SELinux is preventing /usr/libexec/gnome-session-check-accelerated-helper from 'read, write' accesses on the chr_file nvidiactl.

On Tue, 07 Jun 2011 12:28:03 -0700, Joe Zeff wrote:

> On 06/07/2011 06:46 AM, Lawrence E Graves wrote:
>> SELinux is preventing
>> /usr/libexec/gnome-session-check-accelerated-helper from 'read, write'
>> accesses on the chr_file nvidiactl.
>
> Have you tried following the instructions SELinux gives you? If so,
> what happens; if not, why not?

I've added a local policy following the instructions given in the alert.

This fixes the problem.

Since this is an NVidia installer problem, I guess the bug should be
reported to NVidia. The installer already does a lot of SELinux
modifications, so I imagine adding one more shouldn't be a problem.

>From audit.log:

type=AVC msg=audit(1307125809.403:55): avc: denied { read write } for
pid=1596 comm="gnome-session-c" name="nvidiactl" dev=devtmpfs ino=18991
scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023
tcontext=system_ubject_r:device_t:s0 tclass=chr_file

type=AVC msg=audit(1307125809.403:55): avc: denied { open } for
pid=1596 comm="gnome-session-c" name="nvidiactl" dev=devtmpfs ino=18991
scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023
tcontext=system_ubject_r:device_t:s0 tclass=chr_file


>From the recommendations:

# semanage fcontext -a -t SIMILAR_TYPE 'nvidiactl'
# restorecon -v 'nvidiactl'

Currently:

ls -Z /dev/nvidiactl
crw-rw-rw-. root root system_ubject_r:device_t:s0 nvidiactl

ls -Z /usr/libexec/gnome-session-check-accelerated-helper
-rwxr-xr-x. root root system_ubject_r:bin_t:s0 gnome-session-
check-accelerated-helper

So what should the SIMILAR_TYPE be?

I really need to sit down and study the SELinux documents . . . .

Thanks for any pointers.

/mde/

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 

Thread Tools




All times are GMT. The time now is 12:56 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org