From: Brian Cully via Guix-patches via <guix-patches@gnu.org>
To: 62357@debbugs.gnu.org
Cc: Brian Cully <bjc@spork.org>
Subject: [bug#62357] [PATCH] services: base: add pam-mount-volume support for greetd
Date: Tue, 21 Mar 2023 17:09:10 -0400 [thread overview]
Message-ID: <871qlhbye9.fsf@psyduck.jhoto.kublai.com> (raw)
In-Reply-To: <3dc92c40bf6940f2453d1912af08c47771dfa42b.1679432782.git.bjc@spork.org>
Brian Cully <bjc@spork.org> writes:
> This patch lets users create mounts automatically on login with
> the greetd
> service by adding `pam-mount-volume' records via the
> `extra-pam-mount-volumes'
> field of `greetd-configuration'.
>
> The existing rules for XDG_RUNTIME_DIR have been migrated to
> `%base-pam-mount-volumes' and are installed by default.
>
> * gnu/services/base.scm (<pam-mount-volume>): new record
> (pam-mount-volume->sxml): new procedure
> (%base-pam-mount-volumes): new variable
> (greetd-pam-mount-rules): new function
> (%greetd-pam-mount-rules): removed variable
> (<greetd-configuration>): new field `extra-pam-mount-volumes'
I know this patch will need documentation, but I've also assumed
there'll be some discussion around whether or not this is the best
way to proceed, so I'm delaying writing it until there's
consensus.
FWIW, the main use-case of this patch, for me, is auto-mounting
samba shares from a NAS which requires authentication. By using
the PAM mount facility, as long as my local and remote credentials
match, everything happens automatically at login without needing
to type my password twice, and this lets login scripts use the
remote services as well.
I'm sure there are countless other ways to use it, but this is
mine.
It would be nice to have this more generic, since pam-mount isn't
specifically tied to greetd, but it seems like greetd is the only
thing in Guix that uses it currently, so that's why that's the
only hook I've added. I've named the various symbols to express
that they belong to PAM, generally, or greetd, specifically.
-bjc
next prev parent reply other threads:[~2023-03-21 21:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-21 21:06 [bug#62357] [PATCH] services: base: add pam-mount-volume support for greetd Brian Cully via Guix-patches via
2023-03-21 21:09 ` Brian Cully via Guix-patches via [this message]
2023-03-28 15:38 ` Ludovic Courtès
2023-03-28 17:48 ` Guillaume Le Vaillant
2023-03-30 20:35 ` Ludovic Courtès
2023-04-04 18:40 ` Brian Cully via Guix-patches via
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=871qlhbye9.fsf@psyduck.jhoto.kublai.com \
--to=guix-patches@gnu.org \
--cc=62357@debbugs.gnu.org \
--cc=bjc@spork.org \
/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).