emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#49771: closed (conflicting pam-limits-service and pam-mount-service-


From: GNU bug Tracking System
Subject: bug#49771: closed (conflicting pam-limits-service and pam-mount-service-type)
Date: Sat, 07 Aug 2021 15:37:02 +0000

Your message dated Sat, 7 Aug 2021 17:35:47 +0200
with message-id <20210807173547.12257ae6@tachikoma.lepiller.eu>
and subject line Re: [bug#49804] [PATCH] services: pam-limits: fix limits.conf 
location
has caused the debbugs.gnu.org bug report #49771,
regarding conflicting pam-limits-service and pam-mount-service-type
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
49771: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=49771
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: conflicting pam-limits-service and pam-mount-service-type Date: Thu, 29 Jul 2021 19:13:34 +0300 User-agent: mu4e 1.4.15; emacs 28.0.50

pam-limits-service and pam-mount-service-type are working when used only one of them. When both are present in list of (services, conflict hapens when guix system reconfigure is invoked. Digging the problem led to use of etc-service-type.

pam-limits-service defines /etc/security/limits.conf in gnu/services/base.scm:

(define pam-limits-service-type
 (let ((security-limits
;; Create /etc/security containing the provided "limits.conf" file.
        (lambda (limits-file)
          `(("security"
             ,(computed-file
               "security"
               #~(begin
                   (mkdir #$output)
                   (stat #$limits-file)
                   (symlink #$limits-file
                            (string-append #$output "/limits.conf"))))))))
       (pam-extension
        (lambda (pam)

Basically, it says to etc-service-type i need "security" under "/etc" and uses mkdir to create it.

pam-mount-service-type asks "security/pam_mount.conf.xml" from etc-service-type.

(define (pam-mount-etc-service config)
 `(("security/pam_mount.conf.xml"
    ,(make-pam-mount-configuration-file config))))

When both pam-mount-service-type and pam-limits-service are defined in (services ...), if pam-mount-service-type is before pam-limits, guix system reconfigure fails with "Permission denied", if pam-limits is before then it is "File exists".

I would suggest to fix gnu/services/base.scm so that pam-limits-services-type ask for "security/limits.conf" just like pam-mount-services-type does in order to avoid conflict.

Currently, both pam-limits-service and pam-mount-service-type are not usable at the same time.



--- End Message ---
--- Begin Message --- Subject: Re: [bug#49804] [PATCH] services: pam-limits: fix limits.conf location Date: Sat, 7 Aug 2021 17:35:47 +0200
Le Sun, 01 Aug 2021 06:14:00 +0300,
muradm <mail@muradm.net> a écrit :

> * gnu/services/base.scm: fix limits.conf location
> 
> This fixes #49771
> 

Pushed as 29883f113087edaf24570fbd7f1113df907f1099, thank you!


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]