GNU bug report logs -
#63357
[PATCH] gnu: swaylock: Add linux-pam to inputs
Previous Next
Reported by: Benjamin <benjamin <at> uvy.fr>
Date: Mon, 8 May 2023 07:24:02 UTC
Severity: normal
Tags: patch
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 63357 in the body.
You can then email your comments to 63357 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#63357
; Package
guix-patches
.
(Mon, 08 May 2023 07:24:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Benjamin <benjamin <at> uvy.fr>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Mon, 08 May 2023 07:24:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Adding linux-pam to inputs allows swaylock to run without setuid if
configured with a proper pam file.
---
gnu/packages/wm.scm | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm
index fe732e572e..b128b77e6a 100644
--- a/gnu/packages/wm.scm
+++ b/gnu/packages/wm.scm
@@ -1705,9 +1705,7 @@ (define-public swaylock
(sha256
(base32 "03jrjwlwxkcyd6m9a1bbwapasnz7b7aws7h0y6jigjm4m478phv6"))))
(build-system meson-build-system)
- (inputs (list cairo gdk-pixbuf libxkbcommon
- ;("linux-pam" ,linux-pam) ; FIXME: Doesn't work.
- wayland))
+ (inputs (list cairo gdk-pixbuf libxkbcommon linux-pam wayland))
(native-inputs (list pango pkg-config scdoc wayland-protocols))
(home-page "https://github.com/swaywm/sway")
(synopsis "Screen locking utility for Wayland compositors")
base-commit: 7f8575c97a8c112e9f82981b8803d075a82738dd
--
2.39.2
Reply sent
to
Ludovic Courtès <ludo <at> gnu.org>
:
You have taken responsibility.
(Thu, 18 May 2023 17:55:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Benjamin <benjamin <at> uvy.fr>
:
bug acknowledged by developer.
(Thu, 18 May 2023 17:55:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 63357-done <at> debbugs.gnu.org (full text, mbox):
Hi,
Benjamin <benjamin <at> uvy.fr> skribis:
> Adding linux-pam to inputs allows swaylock to run without setuid if
> configured with a proper pam file.
> ---
> gnu/packages/wm.scm | 4 +---
I tweaked the commit log and applied it. Thanks!
Ludo’.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#63357
; Package
guix-patches
.
(Mon, 22 May 2023 15:15:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 63357-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On 2023-05-18 19:54, Ludovic Courtès wrote:
> Hi,
>
> Benjamin <benjamin <at> uvy.fr> skribis:
>
>> Adding linux-pam to inputs allows swaylock to run without setuid if
>> configured with a proper pam file.
>> ---
>> gnu/packages/wm.scm | 4 +---
>
> I tweaked the commit log and applied it. Thanks!
Hey guys!
One of our colleagues mentioned that it's a breaking change and swaylock
with pam backend will complain if suid is set, so the old setups with
(screen-locker-service swaylock) will break after this commit.
Do we want to document how to configure pam for swaylock in manual and
add a news entry for this change?
--
Best regards,
Andrew Tropin
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#63357
; Package
guix-patches
.
(Mon, 22 May 2023 15:54:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 63357-done <at> debbugs.gnu.org (full text, mbox):
Hello,
> One of our colleagues mentioned that it's a breaking change and swaylock
> with pam backend will complain if suid is set, so the old setups with
> (screen-locker-service swaylock) will break after this commit.
>
> Do we want to document how to configure pam for swaylock in manual and
> add a news entry for this change?
First of all sorry for the breaking change.
I am pretty new to guix and did not know about screen-locker-service.
How I managed to make this to work is by setting a custom pam system
service :
(define-public swaylock-pam-service-type
(service-type (name 'swaylock)
(extensions (list (service-extension pam-root-service-type
(const (list (pam-service
(name "swaylock")
(auth (list
(pam-entry
(control "include")
(module "greetd"))))))))))
(description "Swaylock pam configuration")
(default-value '())))
I do not know the policy in case of breaking changes, but if it is
easier we can roll back this change maybe ?
Best
Benjamin
Information forwarded
to
guix-patches <at> gnu.org
:
bug#63357
; Package
guix-patches
.
(Mon, 22 May 2023 19:35:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 63357-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi,
I would suggest to go forward with fixing
screen-locker-service-type.
Root cause of issue is explained within the commit message of:
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=63652
muradm
"Benjamin" <benjamin <at> uvy.fr> writes:
> Hello,
>
>> One of our colleagues mentioned that it's a breaking change and
>> swaylock
>> with pam backend will complain if suid is set, so the old
>> setups with
>> (screen-locker-service swaylock) will break after this commit.
>>
>> Do we want to document how to configure pam for swaylock in
>> manual and
>> add a news entry for this change?
>
> First of all sorry for the breaking change.
>
> I am pretty new to guix and did not know about
> screen-locker-service.
> How I managed to make this to work is by setting a custom pam
> system
> service :
>
> (define-public swaylock-pam-service-type
> (service-type (name 'swaylock)
> (extensions (list (service-extension
> pam-root-service-type
> (const
> (list
> (pam-service
> (name
> "swaylock")
> (auth
> (list
> (pam-entry
> (control
> "include")
> (module
> "greetd"))))))))))
> (description "Swaylock pam configuration")
> (default-value '())))
>
> I do not know the policy in case of breaking changes, but if it
> is
> easier we can roll back this change maybe ?
>
> Best
>
> Benjamin
[signature.asc (application/pgp-signature, inline)]
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 20 Jun 2023 11:24:09 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 325 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.