Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 280443 - x11-base/xorg-server-1.6.{2,3} doesn't start; "Access Denied due to security policies"
Summary: x11-base/xorg-server-1.6.{2,3} doesn't start; "Access Denied due to security ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-05 11:35 UTC by helge.preuss
Modified: 2009-09-26 07:23 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Xorg log (Xorg.0.log.err,17.26 KB, text/plain)
2009-08-05 11:36 UTC, helge.preuss
Details

Note You need to log in before you can comment on or make changes to this bug.
Description helge.preuss 2009-08-05 11:35:03 UTC
With xorg-server-1.6.2.901 and xorg-server-1.6.3 I get the following error when starting X:
Quote:
[config/dbus] couldn't take over org.x.config: org.freedesktop.DBus.Error.AccessDenied (Connection ":1.0" is not allowed to own the service "org.x.config.display0" due to security policies in the configuration file)
(EE) config/hal: couldn't initialise context: unknown error (null)

The NVidia splash screen shows up, but after that the screen goes blank. I have no possibility to return to a console and have to hard reset the computer. Very annoying.

The last 1.6.2 version of xorg-server, I think it was 1.6.2-r1, worked. But now it has been removed from portage. I downgraded to 1.5.3 so I can work.


Reproducible: Always

Steps to Reproduce:
emerge >=xorg-server-1.6.2.901
startx
Actual Results:  
The monitor switches off (no input). I cannot kill X with Ctrl-Alt-Backspace or switch to the console with Alt-FN. I have to hard reset the computer.

Expected Results:  
Well, what would I expect? A smoothly working X, of course! ;-)

emerge --info:
Portage 2.1.6.13 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.10.1-r0, 2.6.28-gentoo-r2 x86_64)
=================================================================
System uname: Linux-2.6.28-gentoo-r2-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4400+-with-gentoo-2.0.1
Timestamp of tree: Wed, 05 Aug 2009 11:00:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.5.4-r2, 2.6.2-r1, 3.1
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.4-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.0
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=athlon64 -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-mtune=athlon64 -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X acl acpi alsa amd64 apache2 berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus doc dri dvd dvdr dvdread eds emboss encode esd evo fam firefox flac fortran gdbm gif gpm gstreamer gtk hal htmlhandbook iconv ipv6 isdnlog java jpeg kde ldap libnotify lm_sensors mad mikmod mmx mp3 mpeg mudflap multilib mysql ncurses nls nptl nptlonly nvidia offensive ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl startup-notification subversion svg sysfs tcpd tiff truetype unicode usb vorbis xcomposite xinerama xml xorg xulrunner xv xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="peruser" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 helge.preuss 2009-08-05 11:36:44 UTC
Created attachment 200254 [details]
Xorg log

BTW, the last line :

(EE) config/hal: couldn't initialise context: unknown error (null)

appears with xorg-server-1.5.3 too, where X works. So it is apparently not related to the problem.
Comment 2 James Earl Spahlinger 2009-08-06 01:45:14 UTC
Can we have the Xorg.0.log from the working version of Xorg please.
Comment 3 Rémi Cardona (RETIRED) gentoo-dev 2009-08-06 06:37:10 UTC
Looks like xorg-server's dbus configuration file in /etc/dbus-1 didn't get installed. Could you try either try rebuilding xorg-server and make sure that this file is properly copied or rebuild xorg-server with USE="-hal" ?

Thanks
Comment 4 Keith Dart 2009-08-06 10:35:58 UTC
On my system the dbus file got installed here:

/etc/X11/dbus-1/system.d/


But I think it should have been here:

/etc/dbus-1/system.d/
Comment 5 helge.preuss 2009-08-06 10:39:31 UTC
I've rebuilt xorg-server a couple of times already. I will try it with
USE=-hal. That will take a couple of days though, because I currently have no
access to the computer in question.

The working Xorg.0.log will have to wait for the same reason.
Comment 6 georg.wacker 2009-08-18 17:25:57 UTC
I had the exact same problem and fixed it by remerging kdm with +consolekit and adding consolekit to the dafault boot level.
Comment 7 Andrew D Kirch 2009-08-23 07:40:40 UTC
(In reply to comment #4)
> On my system the dbus file got installed here:
> 
> /etc/X11/dbus-1/system.d/
> 
> 
> But I think it should have been here:
> 
> /etc/dbus-1/system.d/
> 

You're correct and this alleviates the dbus error however the hal error is still fatal.  I'm using 1.6.3
Comment 8 Rémi Cardona (RETIRED) gentoo-dev 2009-08-23 08:09:01 UTC
I think there are multiple bugs here.

I'll ask you to try reproducing once 1.6.3-r1 is in portage (which should be really soon).

Thank
Comment 9 Andrew D Kirch 2009-08-23 09:26:19 UTC
(In reply to comment #8)
> I think there are multiple bugs here.
> 
> I'll ask you to try reproducing once 1.6.3-r1 is in portage (which should be
> really soon).
> 
> Thank
> 

I agree.  We definitely need to make sure the /etc/dbus-1 stuff gets there or xorg has issues with dbus.  I'm not sure what caused the Hal problem.  I compiled xorg-server without HAL and the issue went away.  Obviously this isn't a fix but the HAL error is uniquely unhelpful.
Comment 10 Ben de Groot (RETIRED) gentoo-dev 2009-08-25 15:14:12 UTC
This is still an issue with 1.6.3. This needs to be fixed or the affected versions masked.
Comment 11 Robert Piasek (RETIRED) gentoo-dev 2009-08-25 16:02:47 UTC
I'm using hal-0.5.13-r2, x11-base/xorg-server-1.6.3 and sys-apps/dbus-1.3.0 and cannot reproduce the problem.

Could you please show content of /etc/dbus-1/system.d/xorg-server.conf ?
Comment 12 Nightwolf_ng 2009-08-26 12:42:59 UTC
(In reply to comment #11)
> Could you please show content of /etc/dbus-1/system.d/xorg-server.conf ?
> 

I've this bug on my system and xorg-server.conf doesn't exests.

Could you show yours?
Comment 13 Rémi Cardona (RETIRED) gentoo-dev 2009-08-26 13:05:47 UTC
I've added xorg-server 1.6.3.901 which contains patches and fixes for this issue. Please don't hesitate to reopen this bug if you can reproduce the issue with the new version.

Thanks
Comment 14 Robert Piasek (RETIRED) gentoo-dev 2009-08-26 14:54:00 UTC
the reference file looks like:

cat /etc/dbus-1/system.d/xorg-server.conf
<!DOCTYPE busconfig PUBLIC
 "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
        <policy context="default">
                <allow own="org.x.config.display0"/>
                <allow send_destination="org.x.config.display0"/>
                <allow send_interface="org.x.config.display0"/>
                <allow own="org.x.config.display1"/>
                <allow send_destination="org.x.config.display1"/>
                <allow send_interface="org.x.config.display1"/>
        </policy>
</busconfig>

also xorg-server-1.6.3 installs it correctly:
=>> [dir] /etc
=>> [dir] /etc/X11
=>> [dir] /etc/X11/dbus-1
=>> [dir] /etc/X11/dbus-1/system.d
>-> [obj] /etc/X11/dbus-1/system.d/xorg-server.conf
>-> [obj] /etc/X11/xorg.conf.example

maybe it is somehow magically removed during cleaning up the old version?
Comment 15 Chris Gianelloni 2009-09-25 22:58:16 UTC
The file is supposed to be in /etc/dbus-1/system.d, not /etc/X11/dbus-1/system.d...

Any chance we can get a fix for this that *doesn't* require upgrading to a "development" version of xorg-server?
Comment 16 Rémi Cardona (RETIRED) gentoo-dev 2009-09-26 07:23:47 UTC
1.6.3.901-r2 is fixed. And despite the weird version number, it's not a "development" version.

Thanks