-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: check cap privileges instead of Geteuid
during starting the agent
#242
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This project uses |
f70608c
to
522c6c0
Compare
916029b
to
1c827ce
Compare
1c827ce
to
f332838
Compare
442817a
to
63f172d
Compare
I think we can add a test script to test it: create a container and copy kyanos and a script in to the container, then execute the copied script which will start kyanos(will failed) and check the log. This is a failed case. If do better we can create a containter with CAP_BPF then start kyanos in it, expect successfully. |
Indeed, we need a dockerfile to build a container environment that can run kyanos. |
Just run an alpine container is sufficient, use |
Just run a alpine container is sufficient. |
85e5e16
to
eba535a
Compare
fff568f
to
d9ac045
Compare
Try add this cap:
|
d1dfc22
to
1c7f97c
Compare
1c7f97c
to
c480f19
Compare
Or we can just run test container in privileged mode, i think it is enough. |
671c18f
to
48a2e35
Compare
48a2e35
to
1fa4636
Compare
1fa4636
to
97b3013
Compare
Geteuid
during starting the agent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
RESOLVE #224
Reference:https://sites.google.com/site/fullycapable/getting-started-with-go/other-linux-capability-go-packages