GNU bug report logs -
#35749
[PATCH] services: sddm: fix root login failure issue.
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 35749 in the body.
You can then email your comments to 35749 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#35749
; Package
guix-patches
.
(Wed, 15 May 2019 14:26:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Reza Alizadeh Majd <r.majd <at> pantherx.org>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Wed, 15 May 2019 14:26:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* gnu/services/sddm.scm
(sdm-pam-service): set uid from config.
(sdm-autologin-pam-service): set uid from config.
(sdm-pam-services): pass sddm-configuration to sddm-pam-service and
sddm-autologin-pam-service
---
gnu/services/sddm.scm | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/gnu/services/sddm.scm b/gnu/services/sddm.scm
index b433c59e12..b0e6d40260 100644
--- a/gnu/services/sddm.scm
+++ b/gnu/services/sddm.scm
@@ -175,7 +175,7 @@ Relogin=" (if (sddm-configuration-relogin? config)
(define (sddm-etc-service config)
(list `("sddm.conf" ,(sddm-configuration-file config))))
-(define (sddm-pam-service)
+(define (sddm-pam-service config)
"Return a PAM service for @command{sddm}."
(pam-service
(name "sddm")
@@ -190,7 +190,9 @@ Relogin=" (if (sddm-configuration-relogin? config)
(pam-entry
(control "required")
(module "pam_succeed_if.so")
- (arguments (list "uid >= 1000" "quiet")))
+ (arguments (list (string-append "uid >= "
+ (number->string (sddm-configuration-minimum-uid config)))
+ "quiet")))
;; should be factored out into system-auth
(pam-entry
(control "required")
@@ -249,7 +251,7 @@ Relogin=" (if (sddm-configuration-relogin? config)
(control "required")
(module "pam_unix.so"))))))
-(define (sddm-autologin-pam-service)
+(define (sddm-autologin-pam-service config)
"Return a PAM service for @command{sddm-autologin}"
(pam-service
(name "sddm-autologin")
@@ -261,7 +263,9 @@ Relogin=" (if (sddm-configuration-relogin? config)
(pam-entry
(control "required")
(module "pam_succeed_if.so")
- (arguments (list "uid >= 1000" "quiet")))
+ (arguments (list (string-append "uid >= "
+ (number->string (sddm-configuration-minimum-uid config)))
+ "quiet")))
(pam-entry
(control "required")
(module "pam_permit.so"))))
@@ -282,9 +286,9 @@ Relogin=" (if (sddm-configuration-relogin? config)
(module "sddm"))))))
(define (sddm-pam-services config)
- (list (sddm-pam-service)
+ (list (sddm-pam-service config)
(sddm-greeter-pam-service)
- (sddm-autologin-pam-service)))
+ (sddm-autologin-pam-service config)))
(define %sddm-accounts
(list (user-group (name "sddm") (system? #t))
--
2.19.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#35749
; Package
guix-patches
.
(Wed, 15 May 2019 14:36:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 35749 <at> debbugs.gnu.org (full text, mbox):
There was an issue for root login using SDDM, that was related to hard-coded uid in sddm-pam-service.
this patch set's the uid based on `minimum-uid` option in `sddm-configuration`.
Best,
Reza
Information forwarded
to
guix-patches <at> gnu.org
:
bug#35749
; Package
guix-patches
.
(Mon, 20 May 2019 21:17:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 35749 <at> debbugs.gnu.org (full text, mbox):
Hi,
Reza Alizadeh Majd <r.majd <at> pantherx.org> skribis:
> * gnu/services/sddm.scm
> (sdm-pam-service): set uid from config.
> (sdm-autologin-pam-service): set uid from config.
> (sdm-pam-services): pass sddm-configuration to sddm-pam-service and
> sddm-autologin-pam-service
> ---
> gnu/services/sddm.scm | 16 ++++++++++------
> 1 file changed, 10 insertions(+), 6 deletions(-)
Could you send an updated patch that documents the ‘minimum-uid’ field
in doc/guix.texi, under ‘sddm-configuration’?
Apart from that it LGTM.
Thanks for fixing this!
Ludo’.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#35749
; Package
guix-patches
.
(Tue, 21 May 2019 11:27:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 35749 <at> debbugs.gnu.org (full text, mbox):
Hi,
> Could you send an updated patch that documents the ‘minimum-uid’ field
> in doc/guix.texi, under ‘sddm-configuration’?
Is it possible to submit further changes to this patch, or I need to submit a new one with whole changes?
Thanks,
Reza
Information forwarded
to
guix-patches <at> gnu.org
:
bug#35749
; Package
guix-patches
.
(Tue, 21 May 2019 11:44:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 35749 <at> debbugs.gnu.org (full text, mbox):
* gnu/services/sddm.scm
(sdm-pam-service): set uid from config.
(sdm-autologin-pam-service): set uid from config.
(sdm-pam-services): pass sddm-configuration to sddm-pam-service and
sddm-autologin-pam-service
---
gnu/services/sddm.scm | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/gnu/services/sddm.scm b/gnu/services/sddm.scm
index b433c59e12..b0e6d40260 100644
--- a/gnu/services/sddm.scm
+++ b/gnu/services/sddm.scm
@@ -175,7 +175,7 @@ Relogin=" (if (sddm-configuration-relogin? config)
(define (sddm-etc-service config)
(list `("sddm.conf" ,(sddm-configuration-file config))))
-(define (sddm-pam-service)
+(define (sddm-pam-service config)
"Return a PAM service for @command{sddm}."
(pam-service
(name "sddm")
@@ -190,7 +190,9 @@ Relogin=" (if (sddm-configuration-relogin? config)
(pam-entry
(control "required")
(module "pam_succeed_if.so")
- (arguments (list "uid >= 1000" "quiet")))
+ (arguments (list (string-append "uid >= "
+ (number->string (sddm-configuration-minimum-uid config)))
+ "quiet")))
;; should be factored out into system-auth
(pam-entry
(control "required")
@@ -249,7 +251,7 @@ Relogin=" (if (sddm-configuration-relogin? config)
(control "required")
(module "pam_unix.so"))))))
-(define (sddm-autologin-pam-service)
+(define (sddm-autologin-pam-service config)
"Return a PAM service for @command{sddm-autologin}"
(pam-service
(name "sddm-autologin")
@@ -261,7 +263,9 @@ Relogin=" (if (sddm-configuration-relogin? config)
(pam-entry
(control "required")
(module "pam_succeed_if.so")
- (arguments (list "uid >= 1000" "quiet")))
+ (arguments (list (string-append "uid >= "
+ (number->string (sddm-configuration-minimum-uid config)))
+ "quiet")))
(pam-entry
(control "required")
(module "pam_permit.so"))))
@@ -282,9 +286,9 @@ Relogin=" (if (sddm-configuration-relogin? config)
(module "sddm"))))))
(define (sddm-pam-services config)
- (list (sddm-pam-service)
+ (list (sddm-pam-service config)
(sddm-greeter-pam-service)
- (sddm-autologin-pam-service)))
+ (sddm-autologin-pam-service config)))
(define %sddm-accounts
(list (user-group (name "sddm") (system? #t))
--
2.19.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#35749
; Package
guix-patches
.
(Tue, 21 May 2019 11:44:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 35749 <at> debbugs.gnu.org (full text, mbox):
---
doc/guix.texi | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/doc/guix.texi b/doc/guix.texi
index 27e0f72ccb..6bce474859 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -13609,7 +13609,8 @@ Directory to look for faces.
Default PATH to use.
@item @code{minimum-uid} (default 1000)
-Minimum UID to display in SDDM.
+Minimum UID to display in SDDM. This option also used in @code{sddm-pam-service} and
+@code{sddm-autologin-pam-service} in order to set minimum UID which allows to login.
@item @code{maximum-uid} (default 2000)
Maximum UID to display in SDDM
--
2.19.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#35749
; Package
guix-patches
.
(Tue, 21 May 2019 13:18:01 GMT)
Full text and
rfc822 format available.
Message #23 received at 35749 <at> debbugs.gnu.org (full text, mbox):
Hi,
"Reza Alizadeh Majd" <r.majd <at> pantherx.org> skribis:
>> Could you send an updated patch that documents the ‘minimum-uid’ field
>> in doc/guix.texi, under ‘sddm-configuration’?
>
> Is it possible to submit further changes to this patch, or I need to submit a new one with whole changes?
Please send us a new patch that includes all the changes.
Thanks in advance!
Ludo’.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#35749
; Package
guix-patches
.
(Tue, 21 May 2019 13:22:03 GMT)
Full text and
rfc822 format available.
Message #26 received at 35749 <at> debbugs.gnu.org (full text, mbox):
OK, sure
On Tue, May 21, 2019, at 5:47 PM, Ludovic Courtès wrote:
> Hi,
>
> "Reza Alizadeh Majd" <r.majd <at> pantherx.org> skribis:
>
> >> Could you send an updated patch that documents the ‘minimum-uid’ field
> >> in doc/guix.texi, under ‘sddm-configuration’?
> >
> > Is it possible to submit further changes to this patch, or I need to submit a new one with whole changes?
>
> Please send us a new patch that includes all the changes.
>
> Thanks in advance!
>
> Ludo’.
>
Reply sent
to
Efraim Flashner <efraim <at> flashner.co.il>
:
You have taken responsibility.
(Tue, 15 Oct 2019 19:39:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Reza Alizadeh Majd <r.majd <at> pantherx.org>
:
bug acknowledged by developer.
(Tue, 15 Oct 2019 19:39:02 GMT)
Full text and
rfc822 format available.
Message #31 received at 35749-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
This patch-set was pushed back in May. Closing the bug now :)
--
Efraim Flashner <efraim <at> flashner.co.il> אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[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
.
(Wed, 13 Nov 2019 12:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 5 years and 278 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.