From: 宋文武 <iyzsong@gmail.com>
To: Andy Wingo <wingo@igalia.com>
Cc: Guix-devel <guix-devel@gnu.org>
Subject: Re: [PATCH v2 3/7] gnu: Allow OS configurations to add PAM session modules
Date: Wed, 26 Aug 2015 15:36:11 +0800 [thread overview]
Message-ID: <CAHZE2pecNrEkeddBYkcPyhSpzLenUkJRTWcb84ZH0eYZpwSpBw@mail.gmail.com> (raw)
In-Reply-To: <87oahu347w.fsf@igalia.com>
2015-08-26 15:21 GMT+08:00 Andy Wingo <wingo@igalia.com>:
> On Tue 25 Aug 2015 23:39, ludo@gnu.org (Ludovic Courtès) writes:
>
>> Andy Wingo <wingo@igalia.com> skribis:
>>
>>> On Tue 25 Aug 2015 16:55, ludo@gnu.org (Ludovic Courtès) writes:
>>>
>>>> (operating-system
>>>> ;; ...
>>>> (pam-services (map (lambda (service)
>>>> (pam-service
>>>> (inherit service)
>>>> (session (cons ...))))
>>>> (base-pam-services))))
>>>>
>>> How would that work for other services like slim, mingetty, etc?
>>
>> Oh, it wouldn’t.
>>
>> Just to help me understand, could you explain the typical use case you
>> have in mind?
>
> Sure. So right now on a Guix system you have /etc/pam.d, and it
> contains configurations for all services that interact with PAM.
> Notably there is "login", for console login, but also slim and lsh.
> Elogind wants to know about all user sessions so it should add a
> "session required /path/to/pam_elogind.so" line to all files in
> /etc/pam.d. This causes login and logout to signal elogind.
>
> That's how I ended up adding #:additional-session-modules to all the
> other services: mingetty, slim, lsh.
>
> I don't know what the right design is. I think ideally anything that
> would log in would include some central file rather than having to
> repeat the rules everywhere.
Yes, we can ues 'include' in pam config, this is how the ArchLinux do it:
https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/pambase
https://projects.archlinux.org/svntogit/packages.git/tree/trunk/slim.pam?h=packages/slim
next prev parent reply other threads:[~2015-08-26 7:36 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-18 8:03 [PATCH v2 1/7] guix: git: Support shallow git clones if a tag is available Andy Wingo
2015-08-18 8:05 ` [PATCH v2 2/7] gnu: elogind: Update to version 219.5 Andy Wingo
2015-08-25 14:46 ` Ludovic Courtès
2015-08-18 8:22 ` [PATCH v2 3/7] gnu: Allow OS configurations to add PAM session modules Andy Wingo
2015-08-25 14:55 ` Ludovic Courtès
2015-08-25 16:00 ` Andy Wingo
2015-08-25 21:39 ` Ludovic Courtès
2015-08-26 7:21 ` Andy Wingo
2015-08-26 7:36 ` 宋文武 [this message]
2015-08-28 9:04 ` Ludovic Courtès
2015-08-18 9:39 ` [PATCH v2 4/7] gnu: polkit: Use elogind for seat management Andy Wingo
2015-08-25 14:56 ` Ludovic Courtès
2015-08-25 16:00 ` Andy Wingo
2015-08-18 9:54 ` [PATCH v2 5/7] gnu: colord: Add libcap input Andy Wingo
2015-08-25 15:03 ` Ludovic Courtès
2015-08-25 16:01 ` Andy Wingo
2015-08-25 21:40 ` Ludovic Courtès
2015-08-18 9:56 ` [PATCH v2 6/7] gnu: Add elogind service Andy Wingo
2015-08-25 15:04 ` Ludovic Courtès
2015-08-18 9:57 ` [PATCH v2 7/7] gnu: Add polkit service Andy Wingo
2015-08-25 15:05 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAHZE2pecNrEkeddBYkcPyhSpzLenUkJRTWcb84ZH0eYZpwSpBw@mail.gmail.com \
--to=iyzsong@gmail.com \
--cc=guix-devel@gnu.org \
--cc=wingo@igalia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).