SELINUX questions for help !!!

Source: Internet
Author: User
SELINUX questions for help !!! -- Linux general technology-Linux technology and application information. For details, refer to the following section. I recently encountered a graphic startup problem during the experiment. I hope you can take a look at it.
Environment: The system is 2.6.18-53 and 2.6.18-92 dual kernels, and selinux is the forced mode. When the 2.6.18-92 kernel is used as the default kernel, it cannot automatically enter the X graphical interface after being restarted, selinux error is reported. (The error log of setroubleshoot is included in the attachment ). Log on to the virtual console at startup, and then use the startx command to start the graphics. selinux still reports the same error, but you can enter the graphic interface.
According to the solution described in setroubleshoot, after the bool value is changed, the error persists.
After selinux is disabled, the kernel in 2.6.18-92 can be started to the graphic interface normally.
In the 2.6.28-53 kernel environment, the GUI can be started normally.
The following is a report on the above error by the graphic tool setroubleshootd.
Summary
SELinux is preventing/usr/bin/Xorg (xdm_t) "mmap_zero" access
(Xdm_t ).

Detailed Description
SELinux denied access requested by/usr/bin/Xorg. It is not expected that
This access is required by/usr/bin/Xorg and this access may signal
Intrusion attempt. It is also possible that the specific version or
Configuration of the application is causing it to require additional access.
Please file a http://bugzilla.redhat.com/bugzilla/enter_bug.cgi against this
Package.

Allowing Access
Sometimes labeling problems can cause SELinux denials. You cocould try
Restore the default system file context , Restorecon-v
. There is currently no automatic way to allow this access.
Instead, you can generate a local policy module to allow this access-see
Http://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385-or you can
Disable SELinux protection entirely for the application. Disabling SELinux
Protection is not recommended. Please file
Http://bugzilla.redhat.com/bugzilla/enter_bug.cgi against this package.
Changing the "xdm_disable_trans" boolean to true will disable SELinux
Protection this application: "setsebool-P xdm_disable_trans = 1 ."

The following command will allow this access:
Setsebool-P xdm_disable_trans = 1

Additional Information

Source Context system_u: system_rdm_t: SystemLow-SystemHigh
Target Context system_u: system_rdm_t: SystemLow-SystemHigh
Target Objects None [memprotect]
Affected RPM Packages xorg-x11-server-Xorg-1.1.1-48.26.el5 [application]
Policies RPM selinux-policy-2.4.6-104.el5
Selinux Enabled True
Policy Type targeted
MLS Enabled True
Enforcing Mode Enforcing
Plugin Name plugins. disable_trans
Host Name station4.example.com
Platform Linux station4.example.com 2.6.18-92.1.6.el5 #1
SMP Fri Jun 20 02:36:16 EDT 2008 i686 i686
Alert Count 15
Line Numbers

Raw Audit Messages

Avc: denied {mmap_zero} for comm = "Xorg" egid = 0 euid = 0 exe = "/usr/bin/Xorg"
Exit =-13 fsgid = 0 fsuid = 0 gid = 0 items = 0 pid = 3149
Scontext = system_u: system_rdm_t: s0-s0: c0.c1023 sgid = 0
Subj = system_u: system_rdm_t: s0-s0: c0.c1023 suid = 0 tclass = memprotect
Tcontext = system_u: system_rdm_t: s0-s0: c0.c1023 tty = tty7 uid = 0

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.