systemtap : ERROR: Couldn't insert module '/tmp/XXXXX.ko' : Operation not permitted

Solution Unverified - Updated -

Issue

While running a simple systemtap script, the following error is reported on pass 5 by staprun:

stap -vo /tmp/stap.out --all-modules test.stp
Pass 1: parsed user script and 473 library scripts using 240096virt/41944res/3436shr/38660data kb, in 470usr/20sys/489real ms.
[...]
Pass 5: starting run.
ERROR: Couldn't insert module '/tmp/stapXXX/stap_XXXXXXXXXXXXXXXXXXX_0001.ko': Operation not permitted
WARNING: /usr/bin/staprun exited with status: 1
Pass 5: run completed in 0usr/50sys/84real ms.
Pass 5: run failed.  [man error::pass5]

Environment

  • RHEL 7.5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content