Browse code

Linux-PAM: enable SELinux support

SELinux enabled systemd requires pam_selinux module.

Change-Id: I3a544201bb172e53e577860ece926e52ee711183
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/9688
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>

Alexey Makhalov authored on 2020/04/21 14:43:06
Showing 1 changed files
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        Linux Pluggable Authentication Modules
2 2
 Name:           Linux-PAM
3 3
 Version:        1.3.0
4
-Release:        2%{?dist}
4
+Release:        3%{?dist}
5 5
 License:        BSD and GPLv2+
6 6
 URL:            https://www.kernel.org/pub/linux/libs/pam/
7 7
 Group:          System Environment/Security
... ...
@@ -11,6 +11,8 @@ Source0:        http://linux-pam.org/library/%{name}-%{version}.tar.bz2
11 11
 %define sha1    Linux-PAM=e956252e81d824c35a60c9b50919ca0767f8a8ec
12 12
 BuildRequires:  cracklib-devel
13 13
 Requires:       cracklib
14
+BuildRequires:  libselinux-devel
15
+Requires:       libselinux
14 16
 %description
15 17
 The Linux PAM package contains Pluggable Authentication Modules used to
16 18
 enable the local system administrator to choose how applications authenticate users.
... ...
@@ -39,6 +41,7 @@ for developing applications that use Linux-PAM.
39 39
     $(test %{_host} != %{_build} && echo "--with-sysroot=/target-%{_arch}") \
40 40
     --includedir=/usr/include/security \
41 41
     --sbindir=/sbin \
42
+    --enable-selinux \
42 43
     --enable-securedir=/usr/lib/security \
43 44
     --docdir=%{_docdir}/%{name}-%{version}
44 45
 
... ...
@@ -91,6 +94,8 @@ rm -rf %{buildroot}/*
91 91
 %{_docdir}/%{name}-%{version}/*
92 92
 
93 93
 %changelog
94
+*   Mon Apr 20 2020 Alexey Makhalov <amakhalov@vmware.com> 1.3.0-3
95
+-   Enable SELinux support
94 96
 *   Thu Nov 15 2018 Alexey Makhalov <amakhalov@vmware.com> 1.3.0-2
95 97
 -   Cross compilation support
96 98
 *   Fri Apr 14 2017 Alexey Makhalov <amakhalov@vmware.com> 1.3.0-1