Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Saul Wold <sgw@linux.intel.com>
To: qiang.chen@windriver.com, openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] shadow: remove reference to locale env files from su
Date: Thu, 21 Nov 2013 10:49:37 -0800	[thread overview]
Message-ID: <528E55C1.6030904@linux.intel.com> (raw)
In-Reply-To: <1385025291-14853-1-git-send-email-qiang.chen@windriver.com>

On 11/21/2013 01:14 AM, qiang.chen@windriver.com wrote:
> From: Qiang Chen <qiang.chen@windriver.com>
>
> The /etc/default/locale missing message appears when running su <user>
>
> root@qemu0:/var/log# su root
> root@qemu0:/var/log# tail auth.log
> Oct  8 07:47:54 qemu0 login[983]: pam_unix(login:session): session opened for user root by LOGIN(uid=0)
> Oct  8 07:47:55 qemu0 login[995]: ROOT LOGIN  on '/dev/console'
> Oct  8 07:48:21 qemu0 su[999]: Successful su for root by root
> Oct  8 07:48:21 qemu0 su[999]: + /dev/console root:root
> Oct  8 07:48:21 qemu0 su[999]: pam_env(su:session): Unable to open env file: /etc/default/locale: No such file or directory
> Oct  8 07:48:21 qemu0 su[999]: pam_unix(su:session): session opened for user root by root(uid=0)
>
> This commit remove reference from pam.d/su to /etc/default/locale
> env file to avoid the error messages.
>
> Signed-off-by: Qiang Chen <qiang.chen@windriver.com>
> ---
>   meta/recipes-extended/shadow/files/pam.d/su |    3 ---
>   meta/recipes-extended/shadow/shadow.inc     |    2 +-
>   2 files changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/meta/recipes-extended/shadow/files/pam.d/su b/meta/recipes-extended/shadow/files/pam.d/su
> index 8e35137..8d590a3 100644
> --- a/meta/recipes-extended/shadow/files/pam.d/su
> +++ b/meta/recipes-extended/shadow/files/pam.d/su
> @@ -34,9 +34,6 @@ auth       sufficient pam_rootok.so
>   #
>   # parsing /etc/environment needs "readenv=1"
>   session       required   pam_env.so readenv=1
> -# locale variables are also kept into /etc/default/locale in etch
> -# reading this file *in addition to /etc/environment* does not hurt
> -session       required   pam_env.so readenv=1 envfile=/etc/default/locale
>

Should we be providing an empty locale file instead, what happens if 
someone wants to use the locale mechanism?


>   # Defines the MAIL environment variable
>   # However, userdel also needs MAIL_DIR and MAIL_FILE variables
> diff --git a/meta/recipes-extended/shadow/shadow.inc b/meta/recipes-extended/shadow/shadow.inc
> index 5ab978a..572c3bc 100644
> --- a/meta/recipes-extended/shadow/shadow.inc
> +++ b/meta/recipes-extended/shadow/shadow.inc
> @@ -44,7 +44,7 @@ SRC_URI_append_class-nativesdk = " \
>   SRC_URI[md5sum] = "b8608d8294ac88974f27b20f991c0e79"
>   SRC_URI[sha256sum] = "633f5bb4ea0c88c55f3642c97f9d25cbef74f82e0b4cf8d54e7ad6f9f9caa778"
>
> -PR = "r13"
> +PR = "r14"
>
No more PR bumps please.

Sau!

>   # Additional Policy files for PAM
>   PAM_SRC_URI = "file://pam.d/chfn \
>


  reply	other threads:[~2013-11-21 18:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-21  9:14 [PATCH] shadow: remove reference to locale env files from su qiang.chen
2013-11-21 18:49 ` Saul Wold [this message]
2013-11-22  3:27   ` Qiang Chen

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=528E55C1.6030904@linux.intel.com \
    --to=sgw@linux.intel.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=qiang.chen@windriver.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