linux-pam: adjust login pam file for SELinux
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 6 Dec 2016 20:27:03 +0000 (21:27 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 25 Jan 2017 10:05:20 +0000 (23:05 +1300)
commitbe9157e1c060ef2ed1c358ee445e610e892c972b
tree7849153da9ba7c9f55f45a58dce7781b3ed63c85
parentcccaf5e046dedcda481e818752b07c6593cbeeb9
linux-pam: adjust login pam file for SELinux

When SELinux support is enabled, the login pam file installed by
linux-pam should be adjusted to use the pam_selinux.so module.

To achieve this in a reasonably simple manner, we introduce the SELinux
related lines in login.pam as comments, and if SELinux support is
enabled, turn those commented lines into real lines.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tested-by: Bryce Ferguson <bryce.ferguson@rockwellcollins.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/linux-pam/linux-pam.mk
package/linux-pam/login.pam