Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Peter Kjellerstedt <peter.kjellerstedt@axis.com>,
	Matt Spinler <mspinler@linux.vnet.ibm.com>,
	"OE Core (openembedded-core@lists.openembedded.org)"
	<openembedded-core@lists.openembedded.org>
Subject: Re: [oe] Using libpam with systemd but without systemd-logind
Date: Sun, 28 Oct 2018 08:40:59 +0000	[thread overview]
Message-ID: <fe093db784b63df2b6f8f880cfa38cc750aad9cc.camel@linuxfoundation.org> (raw)
In-Reply-To: <35db1d5a43494aba81579d2eb2c7c6ff@XBOX04.axis.com>

On Sat, 2018-10-27 at 10:36 +0000, Peter Kjellerstedt wrote:
> 
> > Our embedded system uses systemd and libpam, but doesn't use
> > systemd's logind package.
> > 
> > The libpam recipe,
> > 
https://github.com/openembedded/openembedded-core/blob/master/meta/recipes-extended/pam/libpam_1.3.0.bb#L149
> > ,
> > will add pam_systemd.so to common-session if it detects systemd is
> > used.
> > 
> > However, systemd will only even build pam_systemd.so if the logind
> > package is enabled, shown here:
> > 
https://github.com/systemd/systemd/blob/15b1180945f2cfa0f7938626ff060c8b52606a1a/meson.build#L1747
> > 
> > So in our case, since we are explicitly disabling logind, pam will
> > complain in the journal about not being able to find
> > pam_systemd.so.
> > 
> > As logind isn't a systemd distro feature, I'm not sure how libpam
> > can
> > really know that it doesn't need to add pam_systemd.so to common-
> > session?
> > 
> > Does anyone have any ideas on ways to handle this?
> 
> I am by no means any PAM expert, but prefixing the line inserted
> into 
> /etc/pam.d/common-session with a '-' should make libpam not output 
> anything to the logs if pam_systemd.so does not exist.

The best way I can think of is if each recipe have their own
PACKAGECONFIG entries as appropriate and then your distro configures
both recipes to do the right thing?

Cheers,

Richard



      reply	other threads:[~2018-10-28  8:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4d527ec6c1ac5415dcc51bf71ad4d6cf@linux.vnet.ibm.com>
2018-10-27 10:36 ` [oe] Using libpam with systemd but without systemd-logind Peter Kjellerstedt
2018-10-28  8:40   ` Richard Purdie [this message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fe093db784b63df2b6f8f880cfa38cc750aad9cc.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=mspinler@linux.vnet.ibm.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=peter.kjellerstedt@axis.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox