]> git.pld-linux.org Git - packages/stalld.git/commitdiff
- updated to 1.9.0 auto/th/stalld-1.9.0-1
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 22 Feb 2021 17:09:33 +0000 (18:09 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Mon, 22 Feb 2021 17:09:33 +0000 (18:09 +0100)
- added throttlectl patch (fix shebang and unsafe /tmp usage)

stalld-throttlectl.patch [new file with mode: 0644]
stalld.spec

diff --git a/stalld-throttlectl.patch b/stalld-throttlectl.patch
new file mode 100644 (file)
index 0000000..6520977
--- /dev/null
@@ -0,0 +1,19 @@
+Adjust shebang for split /usr
+Kill possible /tmp vulnerability on service restart
+--- stalld-1.9.0/scripts/throttlectl.sh.orig   2021-02-17 16:10:23.000000000 +0100
++++ stalld-1.9.0/scripts/throttlectl.sh        2021-02-22 17:58:48.425800258 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/bin/bash
++#!/bin/bash
+ # This script is called to either turn off or turn on RT throttling
+ # The 'off' argument causes the current values of the throttling
+@@ -9,7 +9,7 @@
+ path=/proc/sys/kernel
+ cmd=$1
+-savefile=/tmp/rtthrottle
++savefile=/var/run/rtthrottle
+ defperiod=1000000
+ defruntime=950000
+ case ${cmd} in
index 479fcbfb74be5059466eef6e631cc5b9f1c6f600..0f41687f2aced32a265ede7d9884aee7ac064e31 100644 (file)
@@ -1,14 +1,16 @@
 Summary:       stalld - detect starving threads and boost them
 Summary(pl.UTF-8):     stalld - wykrywanie głodujących wątków i przyspieszanie ich
 Name:          stalld
-Version:       1.3.0
+Version:       1.9.0
 Release:       1
 License:       GPL v2
 Group:         Applications/System
 Source0:       https://www.kernel.org/pub/linux/utils/stalld/%{name}-%{version}.tar.xz
-# Source0-md5: aa0d27112d46c8c4d88595f0de8d935a
+# Source0-md5: 559b94552813c63592d165a608edd3df
+Patch0:                %{name}-throttlectl.patch
 URL:           https://gitlab.com/rt-linux-tools/stalld
 BuildRequires: rpmbuild(macros) >= 1.644
+BuildRequires: sed >= 4.0
 BuildRequires: tar >= 1:1.22
 BuildRequires: xz
 Requires:      systemd-units >= 38
@@ -24,6 +26,7 @@ zagłodzeniu wątków systemu operacyjnego pod Linuksem.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__make} \
@@ -57,6 +60,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc README.md
 %attr(755,root,root) %{_bindir}/stalld
+%attr(755,root,root) %{_bindir}/throttlectl
 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/stalld
 %{systemdunitdir}/stalld.service
 %{_mandir}/man8/stalld.8*
This page took 0.081735 seconds and 4 git commands to generate.