]> code.ossystems Code Review - openembedded-core.git/commitdiff
shadow: remove selinux entry from pam.d/login
authorKoen Kooi <koen@dominion.thruhere.net>
Tue, 31 May 2011 18:33:24 +0000 (20:33 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 2 Jun 2011 13:47:26 +0000 (14:47 +0100)
SElinux has been disabled in the recipe, leading to messages like this:

[  167.643218] login[312]: PAM unable to dlopen(/lib/security/pam_selinux.so): /lib/security/pam_selinux.so: cannot open shared object file: No such file or directory
[  167.670837] login[312]: PAM adding faulty module: /lib/security/pam_selinux.so

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
meta/recipes-extended/shadow/files/pam.d/login
meta/recipes-extended/shadow/shadow.inc

index e41eb04ec173789cc6499cd48cc2f0e288d87cab..e4dacc2264cb7955e168f18d5408e1a471a3af57 100644 (file)
@@ -26,13 +26,6 @@ auth       [success=ok ignore=ignore user_unknown=ignore default=die]  pam_secur
 # (Replaces the `NOLOGINS_FILE' option from login.defs)
 auth       requisite  pam_nologin.so
 
-# SELinux needs to be the first session rule. This ensures that any 
-# lingering context has been cleared. Without out this it is possible 
-# that a module could execute code in the wrong domain.
-# When the module is present, "required" would be sufficient (When SELinux
-# is disabled, this returns success.)
-session [success=ok ignore=ignore module_unknown=ignore default=bad] pam_selinux.so close
-
 # This module parses environment configuration file(s)
 # and also allows you to use an extended config
 # file /etc/security/pam_env.conf.
index 42f92a7f4eae97f3ad369d8a005cce8d89269770..35bd6a881bd1ebf1a881ac8b89bb023979e4c319 100644 (file)
@@ -6,6 +6,8 @@ LICENSE = "BSD | Artistic"
 LIC_FILES_CHKSUM = "file://COPYING;md5=08c553a87d4e51bbed50b20e0adcaede \
                     file://src/passwd.c;firstline=8;endline=30;md5=2899a045e90511d0e043b85a7db7e2fe"
 
+PR = "r1"
+
 PAM_PLUGINS = "  libpam-runtime \
                  pam-plugin-faildelay \
                  pam-plugin-securetty \