libsafe-vl.spec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. %define rel 16
  2. %define _libdir /lib
  3. Summary: Libsafe: Protecting Critical Elements of Stacks
  4. Summary(ja): Libsafe - バッファオーバーフロー脆弱製に対する防御ライブラリ
  5. Name: libsafe
  6. Version: 2.0
  7. Release: %{rel}.1%{?_dist_release}
  8. License: LGPL
  9. Group: System Environment/Libraries
  10. Source: http://www.research.avayalabs.com/project/libsafe/libsafe-%{version}-%{rel}.tgz
  11. Source1: libsafe.sh
  12. Source2: libsafe.csh
  13. #Patch0: libsafe-2.0-makefile.patch
  14. URL: http://www.research.avayalabs.com/project/libsafe/index.html
  15. Buildroot: %{_tmppath}/%{name}-%{version}-root
  16. Vendor: Project Vine
  17. Distribution: Vine Linux
  18. %description
  19. The libsafe library protects a process against the exploitation of buffer
  20. overflow vulnerabilities in process stacks. Libsafe works with any
  21. existing pre-compiled executable and can be used transparently, even on a
  22. system-wide basis. The method intercepts all calls to library functions
  23. that are known to be vulnerable. A substitute version of the corresponding
  24. function implements the original functionality, but in a manner that
  25. ensures that any buffer overflows are contained within the current stack
  26. frame. Libsafe has been shown to detect several known attacks and can
  27. potentially prevent yet unknown attacks. Experiments indicate that the
  28. performance overhead of libsafe is negligible.
  29. %prep
  30. #rm -rf %{buildroot}
  31. %setup -q -n libsafe-%{version}-%{rel}
  32. #%patch0 -p1
  33. %build
  34. mkdir -p %{buildroot}{%{_libdir},%{_mandir}/man8,%{_sysconfdir}/profile.d}
  35. make
  36. %install
  37. install -s -m 0755 src/libsafe.so.%{version}.%{rel} %{buildroot}%{_libdir}
  38. install -s -m 0755 src/libsafe.so %{buildroot}%{_libdir}
  39. install -m 0644 doc/libsafe.8 %{buildroot}%{_mandir}/man8
  40. install -m 755 %{SOURCE1} %{buildroot}%{_sysconfdir}/profile.d
  41. install -m 755 %{SOURCE2} %{buildroot}%{_sysconfdir}/profile.d
  42. touch %{buildroot}%{_sysconfdir}/libsafe.notify
  43. %clean
  44. rm -rf %{buildroot}
  45. %post -p /sbin/ldconfig
  46. %postun -p /sbin/ldconfig
  47. %files
  48. %defattr(-,root,root)
  49. %doc README EMAIL_NOTIFICATION COPYING ChangeLog exploits/
  50. %doc doc/whitepaper-1.3 doc/whitepaper-2.0 doc/libsafe.8.html
  51. %{_libdir}/libsafe.so.%{version}.%{rel}
  52. %{_libdir}/libsafe.so
  53. %{_mandir}/*/*
  54. %config(missingok,noreplace) %{_sysconfdir}/profile.d/libsafe.sh
  55. %config(missingok,noreplace) %{_sysconfdir}/profile.d/libsafe.csh
  56. %config(missingok,noreplace) %{_sysconfdir}/libsafe.notify
  57. %changelog
  58. * Mon Sep 29 2008 Shu KONNO <owa@bg.wakwak.com> 2.0-16.1vl5
  59. - applied new versioning policy, spec in utf-8
  60. * Thu Dec 22 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.0-16vl3
  61. - s/Copyright/License/
  62. - changed Group:
  63. - added Japanese summary
  64. * Sun May 18 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.0-16vl2
  65. - fixed libsafe.[c]sh
  66. * Fri May 2 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.0-16vl1
  67. - rebuild with new toolchains
  68. - update to 2.0-16 from upstream
  69. - dropped patch
  70. * Tue Mar 27 2001 Jun Nishii <jun@vinelinux.org>
  71. - 2.0-0vl1
  72. * Thu Feb 15 2001 Jun Nishii <jun@vinelinux.org>
  73. - 1.3-0vl1
  74. * Mon May 15 2000 Tim Powers <timp@redhat.com>
  75. - using this spec for 7.0 since it's a bit better than my orig for 6.2
  76. - ditch redundant defines
  77. - use %{_prefix} where possible
  78. - quiet setup
  79. * Tue Apr 25 2000 William Stearns <wstearns@pobox.com>
  80. - install no longer tries to strip the man page or shell scripts.
  81. * Fri Apr 21 2000 Jeremy Hansen <jeremy@xxedgexx.com>
  82. - updated rpm.
  83. - updated rpm again, got bugfix tar ball from Arash Baratloo <arash@research.bell-labs.com>
  84. * Thu Apr 20 2000 Jeremy Hansen <jeremy@xxedgexx.com>
  85. - initial package build.