]> git.pld-linux.org Git - packages/dump.git/commitdiff
- release 2, dump-0_4b18-2
authorkloczek <kloczek@pld-linux.org>
Mon, 21 Aug 2000 20:51:14 +0000 (20:51 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- security fix: removed suid/sgid root from dump/restore - with this
  permission anyone can dump for example /etc/shadow and restore with own
  permission (@#%!).

Changed files:
    dump.spec -> 1.25

dump.spec

index 895a00ed18d0eece5d8c40bea1d64e71a9e16dcb..049dc3525c90fcbc67b72df0212c27acd703f6bd 100644 (file)
--- a/dump.spec
+++ b/dump.spec
@@ -5,14 +5,14 @@ Summary(pl):  Programy do wykonywania kopii bezpiecze
 Summary(tr):   dump/restore yedekleme sistemi
 Name:          dump
 Version:       0.4b18
-Release:       1
+Release:       2
 Copyright:     UCB
 Group:         Utilities/System
 Group(pl):     Narzêdzia/System
-Source0:       ftp://download.sourceforge.net/pub/sourceforge/dump/dump-%{version}.tar.gz
-Patch0:                dump-sparc.patch
-Patch1:                dump-autoconf.patch
-Patch2:                dump-use_ncurses.patch
+Source0:       ftp://download.sourceforge.net/pub/sourceforge/dump/%{name}-%{version}.tar.gz
+Patch0:                %{name}-sparc.patch
+Patch1:                %{name}-autoconf.patch
+Patch2:                %{name}-use_ncurses.patch
 URL:           http://dump.sourceforge.net/
 BuildRequires: e2fsprogs-devel
 BuildRequires: ncurses-devel >= 5.0
@@ -20,6 +20,8 @@ BuildRequires:        readline-devel
 Requires:      rmt
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define                _sbindir        /sbin
+
 %description
 The dump package contains both dump and restore. Dump examines files
 in a filesystem, determines which ones need to be backed up, and
@@ -58,6 +60,7 @@ Summary(fr):  Acc
 Summary(pl):   Program do zdalnego dostêpu do napêdów ta¶m magnetycznych
 Summary(tr):   Uzak teyp sürücülerine eriþim aracý
 Group:         Utilities/System
+Group(pl):     Narzêdzia/System
 
 %description -n rmt
 The rmt utility provides remote access to tape devices for programs
@@ -97,7 +100,7 @@ MYGRP=`id -rg` \
        --with-ldopts="-s" \
        --with-binowner=$MYNAME \
        --with-bingrp=$MYGRP \
-       --with-binmode=6755 \
+       --with-binmode=755 \
        --with-manowner=$MYNAME \
        --with-mangrp=$MYGRP \
        --with-manmode=644
@@ -112,7 +115,7 @@ install -d $RPM_BUILD_ROOT/{etc,sbin,%{_mandir}/man8}
 
 > $RPM_BUILD_ROOT%{_sysconfdir}/dumpdates
 
-ln -sf ../sbin/rmt $RPM_BUILD_ROOT%{_sysconfdir}/rmt
+ln -sf ..%{_sbindir}/rmt $RPM_BUILD_ROOT%{_sysconfdir}/rmt
 
 gzip -9nf COPYRIGHT KNOWNBUGS README THANKS TODO CHANGES \
        $RPM_BUILD_ROOT%{_mandir}/man8/*
@@ -124,10 +127,8 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc *.gz
 %attr(664,root, disk) %verify(not md5 mtime size) %config(noreplace) %{_sysconfdir}/dumpdates
-%attr(6755,root,root) /sbin/dump
-%attr(755,root,root) /sbin/rdump
-%attr(6755,root,root) /sbin/restore
-%attr(755,root,root) /sbin/rrestore
+%attr(755,root,root) %{_sbindir}/?dump
+%attr(755,root,root) %{_sbindir}/?restore
 %{_mandir}/man8/dump.8*
 %{_mandir}/man8/rdump.8*
 %{_mandir}/man8/restore.8*
@@ -135,6 +136,6 @@ rm -rf $RPM_BUILD_ROOT
 
 %files -n rmt
 %defattr(644,root,root,755)
-%attr(755,root,root) /sbin/rmt
+%attr(755,root,root) %{_sbindir}/rmt
 %attr(755,root,root) %{_sysconfdir}/rmt
 %{_mandir}/man8/rmt.8*
This page took 0.245334 seconds and 4 git commands to generate.