Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ltrace for openSUSE:Factory checked 
in at 2026-04-29 19:17:28
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ltrace (Old)
 and      /work/SRC/openSUSE:Factory/.ltrace.new.30200 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ltrace"

Wed Apr 29 19:17:28 2026 rev:52 rq:1349647 version:0.8.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/ltrace/ltrace.changes    2025-11-19 
14:51:30.205978161 +0100
+++ /work/SRC/openSUSE:Factory/.ltrace.new.30200/ltrace.changes 2026-04-29 
19:17:48.048976571 +0200
@@ -1,0 +2,6 @@
+Mon Apr 27 12:49:24 UTC 2026 - Michael Matz <[email protected]>
+
+- Add ltrace-add-yama-hint.patch (jsc#PED-15928) to give a hint
+  when ltrace -p fails on a system where yama is active.
+
+-------------------------------------------------------------------

New:
----
  ltrace-add-yama-hint.patch

----------(New B)----------
  New:
- Add ltrace-add-yama-hint.patch (jsc#PED-15928) to give a hint
  when ltrace -p fails on a system where yama is active.
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ltrace.spec ++++++
--- /var/tmp/diff_new_pack.MP9Xla/_old  2026-04-29 19:17:48.881010507 +0200
+++ /var/tmp/diff_new_pack.MP9Xla/_new  2026-04-29 19:17:48.885010670 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ltrace
 #
-# Copyright (c) 2025 SUSE LLC and contributors
+# Copyright (c) 2026 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -30,6 +30,7 @@
 Patch7:         gcc9-Wlto-type-mismatch.patch
 Patch8:         s390x-ptrace.patch
 Patch9:         ppc64le-use-after-free.patch
+Patch10:        ltrace-add-yama-hint.patch
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  binutils-devel

++++++ ltrace-add-yama-hint.patch ++++++
commit 572b7aa2460ff0561ec3be09b850e5ded2164353
Author: Michael Matz <[email protected]>
Date:   Mon Apr 27 14:36:14 2026 +0200

    Give hint when ptrace is prevented by yama
    
    like for SElinux yama can be configured to prevent attaching
    to processes by PID, so give a hint about that as well.

diff --git a/sysdeps/linux-gnu/trace.c b/sysdeps/linux-gnu/trace.c
index 12c8747..3d87605 100644
--- a/sysdeps/linux-gnu/trace.c
+++ b/sysdeps/linux-gnu/trace.c
@@ -60,12 +60,13 @@
 void
 trace_fail_warning(pid_t pid)
 {
-       /* This was adapted from GDB.  */
-#ifdef HAVE_LIBSELINUX
        static int checked = 0;
+       FILE *fp;
        if (checked)
                return;
        checked = 1;
+       /* This was adapted from GDB.  */
+#ifdef HAVE_LIBSELINUX
 
        /* -1 is returned for errors, 0 if it has no effect, 1 if
         * PTRACE_ATTACH is forbidden.  */
@@ -75,6 +76,15 @@ trace_fail_warning(pid_t pid)
 "tracing other processes.  You can disable this process attach protection by\n"
 "issuing 'setsebool deny_ptrace=0' in the superuser context.\n");
 #endif /* HAVE_LIBSELINUX */
+       fp = fopen("/proc/sys/kernel/yama/ptrace_scope", "r");
+       if (fp) {
+               int yamaval = 0;
+               if(fscanf(fp, "%d", &yamaval) == 1 && yamaval > 0)
+                       fprintf(stderr,
+"The sysctl(8) setting kernel.yama.ptrace_scope is '%d', which prevents\n"
+"attaching to already running processes by pid.\n", yamaval);
+               fclose(fp);
+       }
 }
 
 void

Reply via email to