| Line | |
|---|
| 1 | Summary: nsswitch proxy module to prevent local account spoofing |
|---|
| 2 | Group: System Environment/Libraries |
|---|
| 3 | Name: nss_nonlocal |
|---|
| 4 | Version: 1.6 |
|---|
| 5 | Release: 0 |
|---|
| 6 | URL: http://debathena.mit.edu/nss_nonlocal/ |
|---|
| 7 | License: GPL |
|---|
| 8 | Source: %{name}.tar.gz |
|---|
| 9 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
|---|
| 10 | |
|---|
| 11 | %description |
|---|
| 12 | This nsswitch module acts as a proxy for other nsswitch modules like hesiod, |
|---|
| 13 | but prevents non-local users from potentially gaining local privileges by |
|---|
| 14 | spoofing local UIDs and GIDs. |
|---|
| 15 | |
|---|
| 16 | %prep |
|---|
| 17 | %setup -q -n %{name} |
|---|
| 18 | |
|---|
| 19 | %build |
|---|
| 20 | make CFLAGS='%optflags' LDFLAGS='%optflags' |
|---|
| 21 | |
|---|
| 22 | %install |
|---|
| 23 | [ $RPM_BUILD_ROOT != / ] && rm -rf $RPM_BUILD_ROOT |
|---|
| 24 | make install DESTDIR=$RPM_BUILD_ROOT libdir=/%{_lib} |
|---|
| 25 | |
|---|
| 26 | %clean |
|---|
| 27 | [ $RPM_BUILD_ROOT != / ] && rm -rf $RPM_BUILD_ROOT |
|---|
| 28 | |
|---|
| 29 | %files |
|---|
| 30 | %defattr(-, root, root) |
|---|
| 31 | %doc README |
|---|
| 32 | /%{_lib}/libnss_nonlocal.so.2 |
|---|
| 33 | |
|---|
| 34 | %pre |
|---|
| 35 | groupadd -r nss-local-users || : |
|---|
| 36 | groupadd -r nss-nonlocal-users || : |
|---|
| 37 | |
|---|
| 38 | %post |
|---|
| 39 | /sbin/ldconfig |
|---|
| 40 | |
|---|
| 41 | %postun |
|---|
| 42 | /sbin/ldconfig |
|---|
| 43 | test "$1" != 0 || groupdel nss-local-users || : |
|---|
| 44 | test "$1" != 0 || groupdel nss-nonlocal-users || : |
|---|
| 45 | |
|---|
| 46 | %changelog |
|---|
| 47 | |
|---|
| 48 | * Thu May 8 2008 Anders Kaseorg <andersk@mit.edu> 1.6-0 |
|---|
| 49 | - Initial RPM release. |
|---|
Note: See
TracBrowser
for help on using the repository browser.