iovisor / iovisor/bcc

Exception: Failed to load BPF program b'tracepoint__sock__inet_sock_set_state': Permission denied

Open
#3,841 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
22.7k
Forks
4.1k
Avg merge
10d 4h
Merged PRs (30d)
3

Description

Hi, I am getting an error running tcpstates

Traceback (most recent call last):
File "tcpstates", line 422, in
b = BPF(text=bpf_text)
File "/usr/lib/python3/dist-packages/bcc/__init__.py", line 483, in __init__
self._trace_autoload()
File "/usr/lib/python3/dist-packages/bcc/__init__.py", line 1456, in _trace_autoload
fn = self.load_func(func_name, BPF.TRACEPOINT)
File "/usr/lib/python3/dist-packages/bcc/__init__.py", line 522, in load_func
raise Exception("Failed to load BPF program %s: %s" %
Exception: Failed to load BPF program b'tracepoint__sock__inet_sock_set_state': Permission denied

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the tcpstates entry point and reproduce the reported command using the traceback details. Investigate why the tracepoint__sock__inet_sock_set_state BPF program is rejected with Permission denied; done should identify a confirmed cause and an appropriate fix or documented prerequisite.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, python
Domain
networking, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.