Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 219558 - sys-apps/dbus - at_console policy broken now that pam_console is gone
Summary: sys-apps/dbus - at_console policy broken now that pam_console is gone
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: PPC Linux
: High major (vote)
Assignee: Project Gentopia
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-28 00:56 UTC by Brian Tarricone
Modified: 2008-10-06 01:03 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Tarricone 2008-04-28 00:56:38 UTC
Now that pam_console is dead, services on the dbus system bus that have 'allow' policies using the at_console="yes" attribute don't work.  Manually creating /var/run/console/$USER as root after login "fixes" the issue, but obviously this isn't really a solution.  Note that I'm using qingy in place of getty/gdm/xdm/whatever -- not sure if that's related.

There doesn't appear to be anything in the linux-pam upgrade guide (http://www.gentoo.org/proj/en/base/pam/upgrade-0.99.xml?style=printable) that addresses this.  There's mention of HAL using ConsoleKit for this type of thing now, but that doesn't really help here, as ConsoleKit doesn't appear to create /var/run/console/$USER (even though 'ck-list-sessions' does show my session running after I start X).

Not sure if emerge --info is useful here, but here it is anyway:

Portage 2.1.5_rc6 (default-linux/ppc/ppc32/2007.0/G4, gcc-4.2.3, glibc-2.7-r2, 2.6.24-gentoo-r3 ppc)
=================================================================
System uname: 2.6.24-gentoo-r3 ppc 7447/7457, altivec supported
Timestamp of tree: Fri, 25 Apr 2008 04:45:01 +0000
distcc 2.18.3 powerpc-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.5
dev-lang/python:     2.4.4-r5, 2.5.2-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.25-r1
ACCEPT_KEYWORDS="ppc ~ppc"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/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/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distcc distlocks parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.netnitco.net http://adelie.polymtl.ca/ http://cdot.senecac.on.ca/software/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.twaren.net/Linux/Gentoo/"
LANG="en_US.utf8"
LDFLAGS="-O1 -Wl,-z,combreloc"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
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"
PORTDIR_OVERLAY="/usr/portage/local/layman/mozilla /usr/local/portage /usr/local/nouveau-overlay /usr/local/initng-overlay"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac acl aim alsa altivec amr ao apache2 apm audiofile avahi berkdb bindist bluetooth bogofilter bzip2 cairo cdda cddb cdio cdparanoia cdr cgi chardet cli consolekit cpudetection cracklib crypt cups curl dbus dri dts dv dvd exif expat fam fastcgi fat fbcon ffmpeg fftw filter firefox flac ftp gd gdbm gif glibc-compat20 gnutls gphoto2 gpm gtk gtkhtml hal hbci hfs iconv icq id3tag ieee1394 imagemagick imap ipod ipv6 isdnlog jabber javascript jpeg kerberos lame libgcrypt libnotify libsamplerate libwww logrotate lzo mad maildir matroska mbox midi mime mmap mp2 mp3 mp4 mpeg mudflap mysql ncurses nls nntp nptl nptlonly nsplugin ntfs objc objc++ offensive ofx ogg opengl openmp oscar pam pcre pdf perl php png posix postproc ppc ppcsha1 pppd python quicktime quotes readline reflection rtc ruby samba sasl scintilla sdl session sharedext shorten sndfile soap sockets sox spell spl sqlite sqlite3 srt ssl startup-notification subversion svg swat syslog sysvipc t1lib tcpd theora tiff truetype unicode usb vcd vcdx vorbis wifi wma x264 xattr xcomposite xface xfs xine xinerama xml xmlreader xmlrpc xmlwriter xorg xosd xpm xscreensaver xsl xulrunner xv xvid yahoo zip zlib" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s 	aoa-tas aoa-toonie powermac usb-audio via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon                  authn_dbd 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 dbd deflate dir disk_cache env expires                  ext_filter file_cache filter headers ident imagemap                  include info log_config logio mem_cache mime                  mime_magic negotiation proxy proxy_ajp                  proxy_balancer proxy_connect proxy_http rewrite                  setenvif so speling status unique_id userdir                  usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nouveau nv nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 DEMAINE Benoît-Pierre, aka DoubleHP 2008-06-15 13:26:55 UTC
Maybe this bug should be marked blocking bug #227177 ?
Comment 2 Steev Klimaszewski (RETIRED) gentoo-dev 2008-10-05 21:10:49 UTC
Hi Brian,

Is this still an issue for you?  I realize there was almost no action on this bug since you reported it, and I apologize for that.  Part of the reason is that everyone in the Gentopia herd was trying to figure out what exactly we should do to get everything working.  The way upstream seems to want to do all these things now is for the ConsoleKit/PolicyKit integration to be doing what the at_console type stuff did.
Comment 3 Brian Tarricone 2008-10-05 22:34:11 UTC
Hey, no problem.  I understand how these things can go sometimes ^_^.  So, if I do:

$ ls /var/run/console -l
total 0
-rw-r--r-- 1 root root 0 2008-10-04 03:51 brian

I did indeed reboot the night before last a little before 4am (don't ask...), so I guess *something* is creating this file after I log in -- maybe ConsoleKit?  I don't have PolicyKit installed, so it's not that.

It would be nice to know what actually fixed my problem, but things appear to be working now (at least I can access dbus system services with <allow at_console="true">), so I guess that's good enough for me...
Comment 4 DEMAINE Benoît-Pierre, aka DoubleHP 2008-10-06 00:28:33 UTC
Brian, if there is no more problem, please mark "INVALID" or "WONTFIX". If there still is a problem, can you describe in which way you expect the "distribution" to change behavior ?
Comment 5 Steev Klimaszewski (RETIRED) gentoo-dev 2008-10-06 01:03:30 UTC
Gonna close this as fixed then, hopefully we will have some better documentation up soon explaining all of this soon.