However (I made two files with outpot, with and without --enable-systemd)
$ grep Shared polkit_*
polkit_enablesystemd: 0x0000000000000001 (NEEDED) Shared library: [libpolkit-gobject-1.so.0]
polkit_enablesystemd: 0x0000000000000001 (NEEDED) Shared library: [libgio-2.0.so.0]
polkit_enablesystemd: 0x0000000000000001 (NEEDED) Shared library: [libgobject-2.0.so.0]
polkit_enablesystemd: 0x0000000000000001 (NEEDED) Shared library: [libglib-2.0.so.0]
polkit_enablesystemd: 0x0000000000000001 (NEEDED) Shared library: [libsystemd-login.so.0]
polkit_enablesystemd: 0x0000000000000001 (NEEDED) Shared library: [libexpat.so.1]
polkit_enablesystemd: 0x0000000000000001 (NEEDED) Shared library: [libmozjs185.so.1.0]
polkit_enablesystemd: 0x0000000000000001 (NEEDED) Shared library: [libpthread.so.0]
polkit_enablesystemd: 0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
polkit_naked: 0x0000000000000001 (NEEDED) Shared library: [libpolkit-gobject-1.so.0]
polkit_naked: 0x0000000000000001 (NEEDED) Shared library: [libgio-2.0.so.0]
polkit_naked: 0x0000000000000001 (NEEDED) Shared library: [libgobject-2.0.so.0]
polkit_naked: 0x0000000000000001 (NEEDED) Shared library: [libglib-2.0.so.0]
polkit_naked: 0x0000000000000001 (NEEDED) Shared library: [libsystemd-login.so.0]
polkit_naked: 0x0000000000000001 (NEEDED) Shared library: [libsystemd-daemon.so.0]
polkit_naked: 0x0000000000000001 (NEEDED) Shared library: [libexpat.so.1]
polkit_naked: 0x0000000000000001 (NEEDED) Shared library: [libmozjs185.so.1.0]
polkit_naked: 0x0000000000000001 (NEEDED) Shared library: [libpthread.so.0]
polkit_naked: 0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
… enabling systemd makes libsystemd-daemon.so.0 go away. Why?
]]>nierro wrote:@Awebb: polkit 0.107 should use logind automatically, without the need to recompile. And i think it's is pretty useful for arch-dev that people test their package instead of building their own.
It obviously does not. I had to recompile the package in testing with "--enable-systemd" as well.
ELF dependencies say otherwise. Straight out of the package in testing...
$ readelf -d usr/lib/polkit-1/polkitd
Dynamic section at offset 0x19e8c contains 33 entries:
Tag Type Name/Value
0x00000001 (NEEDED) Shared library: [libpolkit-gobject-1.so.0]
0x00000001 (NEEDED) Shared library: [libgio-2.0.so.0]
0x00000001 (NEEDED) Shared library: [libgobject-2.0.so.0]
0x00000001 (NEEDED) Shared library: [libglib-2.0.so.0]
0x00000001 (NEEDED) Shared library: [libsystemd-login.so.0]
0x00000001 (NEEDED) Shared library: [libsystemd-daemon.so.0]
0x00000001 (NEEDED) Shared library: [libexpat.so.1]
0x00000001 (NEEDED) Shared library: [libmozjs185.so.1.0]
0x00000001 (NEEDED) Shared library: [libpthread.so.0]
0x00000001 (NEEDED) Shared library: [libc.so.6]
...
Recompiling with --enable-systemd should yield the same binary.
]]>@Awebb: polkit 0.107 should use logind automatically, without the need to recompile. And i think it's is pretty useful for arch-dev that people test their package instead of building their own.
It obviously does not. I had to recompile the package in testing with "--enable-systemd" as well.
]]>Ok i found out something interesting: usb external drive mount now works. But internal drives can't still be mounted as normal user.
EDIT: may be it's because internal drives are Windows drives? Can it be the answer we're looking for?
EDIT2: this is my journalctl after have tried to mount windows partition:Sep 16 14:52:06 arch polkitd[234]: Operator of unix-session:1 FAILED to authenticate to gain authorization for action org.freedesktop.udisks2.filesystem-mount-system for system-bus-name::1.20 [/usr/lib/gvfs/gvfs-udisks2-volume-monitor] (owned by unix-user:federico)
why are you not using /etc/fstab for internal drives? Use x-systemd.automount if you don't want them mounted always...
maybe this is by design and users aren't allowed to mount internal drives by default. My guess is that udisks2 uses different polkit actions for internal drives than for external drives, so you would have to use a custom rule for this after all (but, as mentioned, in JavaScript).
Sep 16 14:52:06 arch polkitd[234]: Operator of unix-session:1 FAILED to authenticate to gain authorization for action org.freedesktop.udisks2.filesystem-mount-system for system-bus-name::1.20 [/usr/lib/gvfs/gvfs-udisks2-volume-monitor] (owned by unix-user:federico)
systemctl status udisks2.service
udisks2.service - Storage Daemon
Loaded: loaded (/usr/lib/systemd/system/udisks2.service; static)
Active: active (running) since Sun, 16 Sep 2012 14:36:58 +0200; 8min ago
Main PID: 376 (udisksd)
CGroup: name=systemd:/system/udisks2.service
└ 376 /usr/lib/udisks2/udisksd --no-debug
Sep 16 14:36:58 arch udisksd[376]: udisks daemon version 1.94.0 starting
Sep 16 14:36:58 arch udisksd[376]: Acquired the name org.freedesktop.UDisks2 on the system message bus
So, i added my .xserverrc, as it was told in that post, and now my session is Active=yes.
I can't mount without password anyway...do you think I should remove all of my custom polkit rules?
EDIT: i can say that now hibernating, suspending, rebooting and poweroff will work without asking for a password. But why mount won't?
EDIT2: tried moving out of the /50-local.d/ folder every custom rule. I can't mount anyway.
hm, not sure what is going on here. if suspend etc. works without password, the session should be set up right. is udisks2.service running (check "systemctl status udisks2")? it should be auto-activated via dbus.
]]>I'm using the autologin to virtual console (https://wiki.archlinux.org/index.php/Au … th_systemd) + .bash_profile to startx when i'm autologged to tty1. My .xinitrc only contains "exec startxfce4"...
I removed consolekit, upower, udisks and xfce4-power-manager 2-3 weeks ago, if this can be useful.
@Awebb: polkit 0.107 should use logind automatically, without the need to recompile. And i think it's is pretty useful for arch-dev that people test their package instead of building their own.
you have to make sure that X starts on the same TTY that you use for the autologin, otherwise systemd can't keep track of the session:
]]>loginctl show-session 1
Id=1
Timestamp=Sun, 16 Sep 2012 14:13:52 +0200
TimestampMonotonic=10100120
DefaultControlGroup=name=systemd:/user/federico/1
VTNr=1
TTY=tty1
Remote=no
Service=login
Leader=182
Audit=1
Type=tty
Class=user
Active=no
State=closing
KillProcesses=no
IdleHint=no
IdleSinceHint=1347797630629978
IdleSinceHintMonotonic=8570165
Name=federico
I'm using the autologin to virtual console (https://wiki.archlinux.org/index.php/Au … th_systemd) + .bash_profile to startx when i'm autologged to tty1. My .xinitrc only contains "exec startxfce4"...
I removed consolekit, upower, udisks and xfce4-power-manager 2-3 weeks ago, if this can be useful.
@Awebb: polkit 0.107 should use logind automatically, without the need to recompile. And i think it's is pretty useful for arch-dev that people test their package instead of building their own.