commit feae430473dbff8249a67fe67fedb6405b0835a6
Author: Jakub Bogusz <[email protected]>
Date:   Mon Feb 22 18:09:33 2021 +0100

    - updated to 1.9.0
    - added throttlectl patch (fix shebang and unsafe /tmp usage)

 stalld-throttlectl.patch | 19 +++++++++++++++++++
 stalld.spec              |  8 ++++++--
 2 files changed, 25 insertions(+), 2 deletions(-)
---
diff --git a/stalld.spec b/stalld.spec
index 479fcbf..0f41687 100644
--- a/stalld.spec
+++ b/stalld.spec
@@ -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*
diff --git a/stalld-throttlectl.patch b/stalld-throttlectl.patch
new file mode 100644
index 0000000..6520977
--- /dev/null
+++ b/stalld-throttlectl.patch
@@ -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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/stalld.git/commitdiff/feae430473dbff8249a67fe67fedb6405b0835a6

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to