iovisor / iovisor/bcc

The function security_path_chown arg1 type STRUCT is unsupported.

Open
#3,657 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
22.7k
Forks
4.1k
Avg merge
5d 13h
Merged PRs (30d)
3

Description

```python
#!/usr/bin/python

from bcc import BPF

bpf_text = '''
KFUNC_PROBE(security_path_chown, struct path *path)
{
return 0;
}
'''

b = BPF(text=bpf_text)
print("BPF programs loaded")
b.trace_print()

```

This small program failed with the following error messages:

```
bpf: Failed to load program: Invalid argument
The function security_path_chown arg1 type STRUCT is unsupported.
processed 0 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0
```

Did not figure out what causes this error. Changing the function `security_path_chown` to `security_path_chmod` works fine.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Run the provided Python BCC reproducer with the security_path_chown KFUNC_PROBE and compare it with the working security_path_chmod case. Trace where BCC or its BPF argument handling rejects STRUCT arguments, then verify that the reproducer loads successfully and the unsupported-argument error is covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, linux, python
Domain
devtools, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.