View previous topic :: View next topic |
Author |
Message |
toofastforyahuh Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 18 May 2004 Posts: 172
|
Posted: Wed Jun 12, 2024 7:32 am Post subject: PolicyKit1 Cannot determine session the caller is in |
|
|
I've been a happy LXDE user for years, and my previous emerge world was successful last month (including profile 23.0 with split-usr).
Suddenly today after emerge-ing world (using --getbinpkg) LXDE notifies me on login:
Code: | GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine session the caller is in |
Furthermore, trying to reboot/power down from the graphical start menu errors with
Code: | InteractiveAuthorizationRequired: Interactive Authentication Required |
What might have changed to cause this?
Previously I had problems where using the elogind binary package caused problems with the power/reboot, and re-emerging it from source fixed it.
But now I have manually re-emerged from source elogind, policykit, dbus, lxsession, lxde-common to no avail. I have not changed my rc-update settings, but they are below for reference.
I have searched around various sites to no avail. I don't really know what policykit is really for, and I have no rules for it.
policykit and dbus are in my USE flags.
Code: | $ groups
disk wheel floppy audio cdrom video games usb users <and my username> |
Code: | # rc-update show
alsasound | boot
binfmt | boot
bootmisc | boot
cgroups | sysinit
dbus | boot
devfs | sysinit
dmesg | sysinit
elogind | boot
fsck | boot
hostname | boot
hwclock | boot
keymaps | boot
killprocs | shutdown
lm_sensors | default
local | default nonetwork
localmount | boot
loopback | boot
modules | boot
mount-ro | shutdown
mtab | boot
net.enp4s0 | boot
net.eth0 | default
net.lo | boot
netmount | default
procfs | boot
root | boot
rsyncd | default
save-keymaps | boot
save-termencoding | boot
savecache | shutdown
seedrng | boot
sshd | default
swap | boot
sysctl | boot
sysfs | sysinit
syslog-ng | default
systemd-tmpfiles-setup | boot
systemd-tmpfiles-setup-dev | sysinit
termencoding | boot
udev | sysinit
udev-trigger | sysinit
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Hu Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
Joined: 06 Mar 2007 Posts: 22382
|
Posted: Wed Jun 12, 2024 1:31 pm Post subject: Re: PolicyKit1 Cannot determine session the caller is in |
|
|
toofastforyahuh wrote: | Code: | $ groups
disk wheel floppy audio cdrom video games usb users <and my username> |
| Although not relevant to your immediate problem, I think membership in group disk is a bad idea. It allows any of your processes to directly read or write attached block devices, bypassing normal filesystem permissions.
For your current problem, does elogind know what session you are in? If elogind does not know, I expect other things would be confused too. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
toofastforyahuh Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 18 May 2004 Posts: 172
|
Posted: Wed Jun 12, 2024 7:14 pm Post subject: |
|
|
How would I go about determining this?
I've referred to this:
https://wiki.gentoo.org/wiki/Elogind
I must confess that the whole interplay between dbus/policykit/elogind/pam is and always has been mysterious, as was consolekit before it.
I do have "elogind", "pam", "dbus" USE flags.
I also have "-systemd" and "-consolekit" so those should not be in the way.
My .xinitrc is:
Code: |
dbus-launch --sh-syntax --exit-with-session startlxde |
I haven't played around with hidepid.
fstab has:
Code: | none /proc proc defaults 0 0
|
loginctl seems to report me OK. Is root supposed to have a session?
Code: | # loginctl
SESSION UID USER SEAT TTY
2 1000 <username> seat0 tty1
1 sessions listed. |
The XDG env vars are:
Code: | # env | grep XDG
XDG_CONFIG_DIRS=/etc/xdg
XDG_MENU_PREFIX=lxde-
XDG_DATA_HOME=/home/<username>/.local/share
XDG_CONFIG_HOME=/home/<username>/.config
XDG_SEAT=seat0
XDG_SESSION_TYPE=tty
XDG_CURRENT_DESKTOP=LXDE
XDG_SESSION_CLASS=user
XDG_VTNR=1
XDG_SESSION_ID=2
XDG_RUNTIME_DIR=/run/user/1000
XDG_DATA_DIRS=/usr/share/gdm:/var/lib/menu-xdg:/usr/local/share:/usr/share |
Code: | # grep -r elogind /etc/pam.d/
/etc/pam.d/elogind-user:session optional pam_elogind.so
/etc/pam.d/system-login:-session optional pam_elogind.so
|
This emerge -puDN world required workarounds for 2 unrelated things:
1. A symlink between /bin/mkdir and /usr/bin/mkdir for dev-ruby/racc
2. Removing ieee1394 from alsa-utils to work around the libffado python-3.12 problem.
Code: | >=media-sound/alsa-utils-1.2.11 -ieee1394 |
but neither of these should impact this I think.[/code]
Lastly, emerge --info:
Code: | # emerge --info
Portage 3.0.63 (python 3.12.3-final-0, default/linux/amd64/23.0/split-usr/desktop, gcc-13, glibc-2.39-r6, 5.8.13 x86_64)
=================================================================
System uname: Linux-5.8.13-x86_64-Intel-R-_Core-TM-_i7-4790K_CPU_@_4.00GHz-with-glibc2.39
KiB Mem: 32845332 total, 30689284 free
KiB Swap: 2097148 total, 2097148 free
Timestamp of repository gentoo: Tue, 11 Jun 2024 20:00:00 +0000
Head commit of repository gentoo: ac72335cac7b42c0baf5aeaba411e80ad7b2dbc6
Timestamp of repository mv: Mon, 03 Jun 2024 05:50:57 +0000
Head commit of repository mv: 570842ed0b96389cca823788844ebb5861d39570
Timestamp of repository torbrowser: Thu, 06 Jun 2024 20:49:07 +0000
Head commit of repository torbrowser: ac0274cfdbe6fea24fb3291f09ebc2ea82ed05d7
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.42 p3) 2.42.0
app-misc/pax-utils: 1.3.7::gentoo
app-shells/bash: 5.1_p16-r6::gentoo
dev-build/autoconf: 2.13-r8::gentoo, 2.71-r7::gentoo
dev-build/automake: 1.16.5-r2::gentoo
dev-build/cmake: 3.28.5::gentoo
dev-build/libtool: 2.4.7-r4::gentoo
dev-build/make: 4.4.1-r1::gentoo
dev-build/meson: 1.4.0-r1::gentoo
dev-java/java-config: 2.3.3-r1::gentoo
dev-lang/perl: 5.38.2-r3::gentoo
dev-lang/python: 3.11.9-r1::gentoo, 3.12.3-r1::gentoo
dev-lang/rust: 1.77.1::gentoo
sys-apps/baselayout: 2.15::gentoo
sys-apps/openrc: 0.54::gentoo
sys-apps/sandbox: 2.38::gentoo
sys-devel/binutils: 2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang: 17.0.6::gentoo
sys-devel/gcc: 13.2.1_p20240210::gentoo
sys-devel/gcc-config: 2.11::gentoo
sys-devel/lld: 17.0.6::gentoo
sys-devel/llvm: 17.0.6::gentoo
sys-kernel/linux-headers: 6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc: 2.39-r6::gentoo
Repositories:
gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
volatile: True
sync-rsync-extra-opts:
sync-rsync-verify-jobs: 1
sync-rsync-verify-max-age: 3
sync-rsync-verify-metamanifest: yes
mv
location: /var/db/repos/mv
sync-type: git
sync-uri: https://github.com/gentoo-mirror/mv.git
masters: gentoo
volatile: False
sawfish
location: /var/db/repos/sawfish-overlay-master
masters: gentoo
volatile: False
torbrowser
location: /var/db/repos/torbrowser
sync-type: git
sync-uri: https://github.com/gentoo-mirror/torbrowser.git
masters: gentoo
volatile: False
x-portage
location: /usr/local/portage
masters: gentoo
priority: 0
volatile: True
Binary Repositories:
binhost
priority: 9999
sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fno-stack-protector"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -fno-stack-protector"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-request-signature buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
LINGUAS="en"
MAKEOPTS="-j9"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 asf audiofile branding bzip2 cairo cdda cdr cet chroot crypt cups dbus device-mapper dga disk-partition dri dts dv dvb dvd dvdr elogind encode exif external-fuse extras faad ffmpeg flac freetype gdbm gif gimp gimpprint gpm gtk gui iconv icq icu ieee1394 imagemagick insecure-savers ipv6 joystick jpeg lcms libnotify libsamplerate libtirpc mad matroska minimal mjpeg mmxext mng modplug mozbranding mp3 mp4 mpeg mpeg4 multilib ncurses ntfsprogs ogg opengl openmp openssh openssl pam pango pcre pdf pdfimport png policykit pthreads qt5 quicktime readline sdl seccomp slang smp sound sox split-usr ssl startup-notification svg tcltk test-rust theora threads tiff transcode truetype udev udisks usb v4l v4l2 vcd vorbis vulkan webp wxwidgets x264 xattr xcb xft xinetd xml xml2 xv xvid zlib" ABI_X86="64" ADA_TARGET="gcc_12" ALSA_CARDS="atiixp" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="evdev libinput keyboard mouse joystick" KERNEL="linux" L10N="en-US" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby31 ruby32" VIDEO_CARDS="vesa fbdev radeon radeonsi amdgpu" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LANG, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
toofastforyahuh Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 18 May 2004 Posts: 172
|
Posted: Fri Jun 14, 2024 6:08 pm Post subject: |
|
|
The problem persists even after picking up the latest -r release elogind promotion (from a few days ago).
After even taking a heavy hand and emerge -e world, the problem still persists.
However, downgrading to sys-auth/polkit-123 fixes the problem.
What happened between polkit-123 and polkit-124-r1?
EDIT: Bug filed:
https://bugs.gentoo.org/934314 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Tom_ Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/1495236763449c22e973a0c.jpg)
Joined: 20 May 2004 Posts: 448 Location: France
|
Posted: Sat Aug 10, 2024 7:29 pm Post subject: |
|
|
Thank you! This (downgrading Polkit) just helped me fix the same problem on my computer. It was driving me crazy! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|