diff options
author | dsmith <dsmith> | 2007-08-14 15:29:40 +0000 |
---|---|---|
committer | dsmith <dsmith> | 2007-08-14 15:29:40 +0000 |
commit | 98aab4894c500fd1c387e3619dc8aa2c096a8b89 (patch) | |
tree | 907598e0f44a1796757d028a31798ccb5c60afe9 /systemtap.spec.in | |
parent | 69bf08b5a00d5095ca50b7400221b2cbedeae904 (diff) | |
download | systemtap-steved-98aab4894c500fd1c387e3619dc8aa2c096a8b89.tar.gz systemtap-steved-98aab4894c500fd1c387e3619dc8aa2c096a8b89.tar.xz systemtap-steved-98aab4894c500fd1c387e3619dc8aa2c096a8b89.zip |
2007-08-14 David Smith <dsmith@redhat.com>
Merge from setuid-branch. Changes also by Martin Hunt
<hunt@redhat.com>.
* Makefile.am: Added staprun_funcs.c and cap.c to
staprun_SOURCES. Added -lcap to staprun_LDADD. Removed
stp_check reference. Added stapio program. Staprun is now
setuid.
* Makefile.in: Rebuilt.
* configure.ac: Version increase to 0.6 and checks for libcap
availability. Removed stp_check reference.
* configure: Regenerated.
* stp_check.in: Removed.
* systemtap.spec.in: Version increase to 0.6-1 and added
BuildReq for libcap-devl (and removed sudo requirement).
Added %pre script to create new groups. Staprun is now
setuid.
* NEWS: Added info on new security model.
* INTERNALS: Removed sudo reference.
* README.security: New file.
* main.cxx (main): Make sure module name isn't too long.
* hash.cxx: Moved MODULE_NAME_LEN define to hash.h.
* hash.h: Moved MODULE_NAME_LEN define here from hash.cxx.
* buildrun.cxx (run_pass): No longer runs staprun with "sudo".
* stap.1.in: Removed sudo references and added information about
the stapdev/stapusr groups.
* staprun.8.in: Added information about module detaching and
attaching. Removed sudo references and added information
about the stapdev/stapusr groups. Removed reference to
staprun needing to be run as root. Removed reference to
removed '-u USERNAME' option.
* .cvsignore: Removed stp_check and added stapio and stap_merge.
Diffstat (limited to 'systemtap.spec.in')
-rw-r--r-- | systemtap.spec.in | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/systemtap.spec.in b/systemtap.spec.in index 72961f14..ead918ec 100644 --- a/systemtap.spec.in +++ b/systemtap.spec.in @@ -1,5 +1,5 @@ # Release number for rpm build. Stays at 1 for new PACKAGE_VERSION increases. -%define release 2 +%define release 1 # Version number of oldest elfutils release that works with systemtap. %define elfutils_version 0.127 @@ -47,6 +47,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: kernel >= 2.6.9-11 BuildRequires: glib2-devel >= 2.0.0 +BuildRequires: libcap-devel # make check BuildRequires: dejagnu %if %{sqlite} @@ -59,7 +60,6 @@ Requires: glib2 >= 2.0.0 Requires: gcc make # Suggest: kernel-debuginfo Requires: systemtap-runtime = %{version}-%{release} -Requires: sudo %if %{bundled_elfutils} Source1: elfutils-%{elfutils_version}.tar.gz @@ -134,12 +134,24 @@ chmod -x examples/samples/kmalloc-top rm -rf ${RPM_BUILD_ROOT} make DESTDIR=$RPM_BUILD_ROOT install +# Because "make install" installs staprun with mode 04111, the +# post-processing programs rpmbuild runs won't be able to read it. +# So, we change permissions so that they can read it. We'll set the +# permissions back to 04111 in the %files section below. +chmod 755 $RPM_BUILD_ROOT%{_bindir}/staprun + %check make check %{?elfutils_mflags} || : %clean rm -rf ${RPM_BUILD_ROOT} +%pre +if [ $1 -eq 1 ]; then + groupadd -r stapdev >/dev/null 2>&1 || : + groupadd -r stapusr >/dev/null 2>&1 || : +fi + %files %defattr(-,root,root) @@ -161,13 +173,16 @@ rm -rf ${RPM_BUILD_ROOT} %files runtime %defattr(-,root,root) -%{_bindir}/staprun +%attr(4111,root,root) %{_bindir}/staprun %{_libexecdir}/systemtap %{_mandir}/man8/* %doc README AUTHORS NEWS COPYING %changelog +* Thu Aug 9 2007 David Smith <dsmith@redhat.com> - 0.6-1 +- Bumped version, added libcap-devel BuildRequires. + * Wed Jul 11 2007 Will Cohen <wcohen@redhat.com> - 0.5.14-2 - Fix Requires and BuildRequires for sqlite. |