Skip to content

BUG: add strace package as a RHEL/CentOS and Fedora dependency - #124

Closed
rprobaina wants to merge 1 commit into
linux-audit:mainfrom
rprobaina:signal
Closed

BUG: add strace package as a RHEL/CentOS and Fedora dependency#124
rprobaina wants to merge 1 commit into
linux-audit:mainfrom
rprobaina:signal

Conversation

@rprobaina

@rprobaina rprobaina commented Feb 9, 2026

Copy link
Copy Markdown
Contributor

The strace tool is invoked in the signal test, as shown in the code snippet below.

signal/test:
...
98 # Generate a ptrace event
99 $result = system("strace -p $task2_pid >/dev/null 2>&1");
100 ok( $result, 0 ); # Was the ptrace command successful?
...

However, the strace package is not installed by default in recent RHEL/CentOS and Fedora distros. This missing dependency results in a signal test failure below:

signal/test .. 2/8 # Test 5 got: "32512" (signal/test at line 100)

Expected: "0" signal/test line 100 is: ok( $result, 0 ); # Was the ptrace
command successful? Test 8 got: "0" (signal/test at line 142) Expected: "1"
signal/test line 142 is: ok( $found_ptrace, 1 ); # Was the ptrace found?

signal/test .. Failed 2/8 subtests

This commit adds the strace package in both RHEL/CentOS and Fedora dependency lists in order to avoid this issue in the future.

Signed-off-by: Ricardo Robaina rrobaina@redhat.com

The strace tool is invoked in the signal test, as shown in the code
snippet below.

signal/test:
...
 98 # Generate a ptrace event
 99 $result = system("strace -p $task2_pid >/dev/null 2>&1");
100 ok( $result, 0 );    # Was the ptrace command successful?
...

However,  the strace package is not installed by default in recent
RHEL/CentOS and Fedora distros. This missing dependency results in
a signal test failure below:

signal/test .. 2/8 # Test 5 got: "32512" (signal/test at line 100)

  Expected: "0"  signal/test line 100 is: ok( $result, 0 );    # Was the ptrace
  command successful? Test 8 got: "0" (signal/test at line 142)   Expected: "1"
  signal/test line 142 is: ok( $found_ptrace, 1 );    # Was the ptrace found?

signal/test .. Failed 2/8 subtests

This commit adds the strace package in both RHEL/CentOS and Fedora
dependency lists in order to avoid this issue in the future.

Signed-off-by: Ricardo Robaina <rrobaina@redhat.com>
@pcmoore pcmoore changed the title README: Add strace package as a RHEL/CentOS and Fedora dependency BUG: add strace package as a RHEL/CentOS and Fedora dependency May 27, 2026
@pcmoore pcmoore added the bug label May 27, 2026
@pcmoore

pcmoore commented May 27, 2026

Copy link
Copy Markdown
Contributor

Merged via 54a8522, thanks!

@pcmoore pcmoore closed this May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants