* /dev/mem error starting X11
@ 2002-07-01 13:51 Timothy Wood
2002-07-01 20:13 ` Stephen Smalley
0 siblings, 1 reply; 2+ messages in thread
From: Timothy Wood @ 2002-07-01 13:51 UTC (permalink / raw)
To: SELinux
Howdy all,
I just installed the latest 2.4-lsm package on an almost fresh install
of RH7.3 (stock + gnome 2) and when I try to start X11 I get an error
accessing /dev/mem (and as I just noticed /dev/apm_bios)
avc: denied { read } for pid=10290 exe=/usr/X11R6/bin/XFree86
path=/dev/mem dev=03:03 ino=65566 scontext=root:sysadm_r:sysadm_t
tcontext=system_u:object_r:memory_device_t tclass=chr_file
avc: denied { read write } for pid=10290 exe=/usr/X11R6/bin/XFree86
path=/dev/apm_bios dev=03:03 ino=65587 scontext=root:sysadm_r:sysadm_t
tcontext=system_u:object_r:apm_bios_t tclass=chr_file
avc: denied { read write } for pid=10290 exe=/usr/X11R6/bin/XFree86
path=/dev/mem dev=03:03 ino=65566 scontext=root:sysadm_r:sysadm_t
tcontext=system_u:object_r:memory_device_t tclass=chr_file
Jul 1
Anyone have any ideas? Also, despite that my networking works and
everything I keep getting an avc message dealing with dhcp. The dhcp
works, I'm just curious about the message if anyone can explain it.
avc: denied { recvfrom } for saddr=192.168.42.242 daddr=192.168.42.7
netif=eth0 scontext=system_u:system_r:dhcpc_t
tcontext=system_u:system_r:icmp_socket_t tclass=packet_socket
Thanks,
--
You have received this message because you are subscribed to the selinux list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: /dev/mem error starting X11
2002-07-01 13:51 /dev/mem error starting X11 Timothy Wood
@ 2002-07-01 20:13 ` Stephen Smalley
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Smalley @ 2002-07-01 20:13 UTC (permalink / raw)
To: Timothy Wood; +Cc: SELinux
On 1 Jul 2002, Timothy Wood wrote:
> I just installed the latest 2.4-lsm package on an almost fresh install
> of RH7.3 (stock + gnome 2) and when I try to start X11 I get an error
> accessing /dev/mem (and as I just noticed /dev/apm_bios)
You need to set the type on the XFree86 program. Justin Smith mentioned
this issue with RH7.3 previously on the list, along with a few other
changes he found necessary for RH7.3. For a quick fix, just run:
chcon system_u:object_r:xserver_exec_t /usr/X11R6/bin/XFree86
To ensure that this type is preserved upon subsequent make relabel's, add
an appropriate entry to policy/file_contexts/program/xserver.fc. We have
made this change in our internal tree, and it will be included in the
next public release.
> everything I keep getting an avc message dealing with dhcp. The dhcp
> works, I'm just curious about the message if anyone can explain it.
>
> avc: denied { recvfrom } for saddr=192.168.42.242 daddr=192.168.42.7
> netif=eth0 scontext=system_u:system_r:dhcpc_t
> tcontext=system_u:system_r:icmp_socket_t tclass=packet_socket
This indicates that dhcpcd is receiving a kernel-generated ICMP packet.
You can allow this via 'allow dhcpc_t icmp_socket_t:packet_socket
recvfrom;' in policy/domains/program/dhcpc.te.
--
Stephen D. Smalley, NAI Labs
ssmalley@nai.com
--
You have received this message because you are subscribed to the selinux list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-07-01 20:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-01 13:51 /dev/mem error starting X11 Timothy Wood
2002-07-01 20:13 ` Stephen Smalley
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.