diff options
author | Qiang Chen <qiang.chen@windriver.com> | 2013-11-22 12:59:46 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-12-09 18:01:43 +0000 |
commit | fedd84f7eee7dba095459cde4df435975c7e6aac (patch) | |
tree | fc922bd64322dbfd5503879b7418bd0fd3714916 /meta/recipes-extended/shadow/files/pam.d | |
parent | 1fd93bd1a3d679d78adca306fc86e74e8af24495 (diff) | |
download | poky-fedd84f7eee7dba095459cde4df435975c7e6aac.tar.gz |
shadow: remove reference to locale env files from login and su
/etc/default/locale missing message appears when login
and running su <user>
qemu0 login[4189]: pam_env(login:session): Unable to open env file: /etc/default/locale: No such file or directory
qemu0 login[4189]: pam_unix(login:session): session opened for user root by LOGIN(uid=0)
qemu0 su[999]: pam_env(su:session): Unable to open env file: /etc/default/locale: No such file or directory
qemu0 su[999]: pam_unix(su:session): session opened for user root by root(uid=0)
This commit remove reference from pam.d/login and pam.d/su
to /etc/default/locale env file to avoid the error messages
as RHEL, fedora does.
(From OE-Core rev: 010ffabfb8631bd4894cc3f1f6f0834f3279f30c)
Signed-off-by: Qiang Chen <qiang.chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/shadow/files/pam.d')
-rw-r--r-- | meta/recipes-extended/shadow/files/pam.d/login | 3 | ||||
-rw-r--r-- | meta/recipes-extended/shadow/files/pam.d/su | 3 |
2 files changed, 0 insertions, 6 deletions
diff --git a/meta/recipes-extended/shadow/files/pam.d/login b/meta/recipes-extended/shadow/files/pam.d/login index e4dacc2264..b340058539 100644 --- a/meta/recipes-extended/shadow/files/pam.d/login +++ b/meta/recipes-extended/shadow/files/pam.d/login | |||
@@ -32,9 +32,6 @@ auth requisite pam_nologin.so | |||
32 | # | 32 | # |
33 | # parsing /etc/environment needs "readenv=1" | 33 | # parsing /etc/environment needs "readenv=1" |
34 | session required pam_env.so readenv=1 | 34 | session required pam_env.so readenv=1 |
35 | # locale variables are also kept into /etc/default/locale in etch | ||
36 | # reading this file *in addition to /etc/environment* does not hurt | ||
37 | session required pam_env.so readenv=1 envfile=/etc/default/locale | ||
38 | 35 | ||
39 | # Standard Un*x authentication. | 36 | # Standard Un*x authentication. |
40 | auth include common-auth | 37 | auth include common-auth |
diff --git a/meta/recipes-extended/shadow/files/pam.d/su b/meta/recipes-extended/shadow/files/pam.d/su index 8e35137f37..8d590a32e6 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 | |||
34 | # | 34 | # |
35 | # parsing /etc/environment needs "readenv=1" | 35 | # parsing /etc/environment needs "readenv=1" |
36 | session required pam_env.so readenv=1 | 36 | session required pam_env.so readenv=1 |
37 | # locale variables are also kept into /etc/default/locale in etch | ||
38 | # reading this file *in addition to /etc/environment* does not hurt | ||
39 | session required pam_env.so readenv=1 envfile=/etc/default/locale | ||
40 | 37 | ||
41 | # Defines the MAIL environment variable | 38 | # Defines the MAIL environment variable |
42 | # However, userdel also needs MAIL_DIR and MAIL_FILE variables | 39 | # However, userdel also needs MAIL_DIR and MAIL_FILE variables |