Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#67654 - [sway] depends on polkit since systemd v245

Attached to Project: Community Packages
Opened by Ronan Pigott (Brocellous) - Thursday, 20 August 2020, 19:43 GMT
Last edited by Brett Cornwall (ainola) - Saturday, 22 August 2020, 06:09 GMT
Task Type General Gripe
Category Packages
Status Closed
Assigned To Jerome Leclanche (Adys)
Brett Cornwall (ainola)
Maxim Baz (maximbaz)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Original report in  FS#65761 .

Polkit was added as a dependency to the sway package but no conclusion was reached as to whether or not it was actually necessary.

The close message says:
> If there is more development around whether polkit is actually necessary or not, please open a new bug with detailed information.

I looked into it and these are my findings:

The new dep is caused by systemd in [1]. Prior to release the change was partially reverted to allow unprivileged users to start Wayland sessions at all in [2].

As a result of the above, polkit is necessary to org.freedesktop.login1.Session.Activate, which sway needs to become the active session when using the logind backend. The policy is permissive, but when polkit is not installed the dbus message to polkit to check for the requisite authority fails to send and permission is denied. The message about CAP_SYS_ADMIN and DrmMaster is related to an alternative backend for starting a sway session without logind, so it's not relevant for the Arch package.

I don't see how to resolve this without depending on polkit or changing systemd, so I suppose it really is necessary now.

[1] https://github.com/systemd/systemd/commit/4acf0cfd2f92edb94ad48d04f1ce6c9ab4e19d55
[2] https://github.com/systemd/systemd/pull/15111
This task depends upon

Closed by  Brett Cornwall (ainola)
Saturday, 22 August 2020, 06:09 GMT
Reason for closing:  None
Additional comments about closing:  Thanks for the detailed investigation, Brocellous! In particular, the fallback to elogind spewing error messages is a pretty big red herring. :)

I also am not aware of any way around the polkit dependency, so I'll go ahead and close this.

Thanks again!

Loading...