Opening debugfs files fails with an error: Operation not permitted.

Solution Verified - Updated -

Issue

  • Opening debugfs files fails with an error: Operation not permitted.
# cat /sys/kernel/debug/sched_features
cat: /sys/kernel/debug/sched_features: Operation not permitted

# ls -l /sys/kernel/debug/sched_features
-rw-r--r--. 1 root root 0 Jun  3 03:03 /sys/kernel/debug/sched_features

# id
uid=0(root) gid=0(root) groups=0(root) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
  • Changing file permissionsand ownership ofdebugfsfails with an error:Operation not permitted`.
# ls -l /sys/kernel/debug/sched_features
-rw-r--r--. 1 root root 0 Jun  3 03:18 /sys/kernel/debug/sched_features

# chmod 777 /sys/kernel/debug/sched_features
chmod: changing permissions of '/sys/kernel/debug/sched_features': Operation not permitted

# chown root:root /sys/kernel/debug/sched_features
chown: changing ownership of '/sys/kernel/debug/sched_features': Operation not permitted

Environment

  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9
  • UEFI Secure Boot Enabled

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