All of lore.kernel.org
 help / color / mirror / Atom feed
* can't start X window in enforce mode
@ 2003-10-12 18:37 lky
  2003-10-12 22:11 ` Russell Coker
  2003-10-12 23:15 ` Michael Reilly
  0 siblings, 2 replies; 13+ messages in thread
From: lky @ 2003-10-12 18:37 UTC (permalink / raw)
  To: SELINUX

[-- Attachment #1: Type: text/plain, Size: 812 bytes --]

Hi, I have eliminated all the denied messages in permissive mode. But when I change to the enforce mode I can't start X window now.The error message is below:
-----------------------------------------------------------------------------------------
...............
(EE) NV(0): Cannot open /dev/mem
................
Fatal server error:
xf86MapVidMem: failed to open /dev/mem (Permission denied)
................
XIO:  fatal IO error 104 (Connection reset by peer) on X server ":0.0"
      after 0 requests (0 known processed) with 0 events remaining.
-----------------------------------------------------------------------------------------
Why the system didn't display the denied message if the opration violate the policy? How should I configure my policy in order to start the X window?
Thanks! 

[-- Attachment #2: Type: text/html, Size: 1564 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread
* RE: can't start X window in enforce mode
@ 2003-10-16 14:21 Kratzer, James R.
  2003-10-16 15:57 ` Russell Coker
  0 siblings, 1 reply; 13+ messages in thread
From: Kratzer, James R. @ 2003-10-16 14:21 UTC (permalink / raw)
  To: SELinux (E-mail)

I'm trying to get X-windows to start with enforce set to "1" without any
luck.  I have moved the xserver.te file from the domains/program/unused
directory to the domains/program directory.  I have changed the dontaudit
line to allow as described here in the email below.  Any help would be
appreciated.

-----Original Message-----
From: Russell Coker [mailto:russell@coker.com.au]
Sent: Sunday, October 12, 2003 6:11 PM
To: lky; SELINUX
Subject: Re: can't start X window in enforce mode


On Mon, 13 Oct 2003 04:37, lky wrote:
>-------------- Why the system didn't display the denied message if the
> opration violate the policy? How should I configure my policy in order to
> start the X window? Thanks!

# memory_device_t access is needed if not using the frame buffer
dontaudit $1_xserver_t memory_device_t:chr_file read;

The above is the relevant section of policy in
macros/program/xserver_macros.te.  The X server tries to access /dev/mem
even 
if it doesn't need to.  Change the dontaudit rule to an allow for 
rw_file_perms and it should work.

-- 
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page


--
This message was distributed to subscribers of the selinux mailing 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.

--
This message was distributed to subscribers of the selinux mailing 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] 13+ messages in thread

end of thread, other threads:[~2003-10-16 15:57 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-12 18:37 can't start X window in enforce mode lky
2003-10-12 22:11 ` Russell Coker
2003-10-13  3:14   ` lky
2003-10-12 23:15 ` Michael Reilly
2003-10-13  7:52   ` Russell Coker
2003-10-14 15:00     ` Stephen Smalley
2003-10-14 19:02       ` Michael Reilly
2003-10-15  0:18         ` Russell Coker
2003-10-15  0:26           ` Michael Reilly
2003-10-16  1:43           ` Michael Reilly
2003-10-16  3:17             ` Russell Coker
  -- strict thread matches above, loose matches on Subject: below --
2003-10-16 14:21 Kratzer, James R.
2003-10-16 15:57 ` Russell Coker

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.