Skip to content

README: Add strace package as a RHEL/CentOS and Fedora dependency#124

Open
rprobaina wants to merge 1 commit intolinux-audit:mainfrom
rprobaina:signal
Open

README: Add strace package as a RHEL/CentOS and Fedora dependency#124
rprobaina wants to merge 1 commit intolinux-audit:mainfrom
rprobaina:signal

Conversation

@rprobaina
Copy link
Contributor

@rprobaina rprobaina commented Feb 9, 2026

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant