Skip to content
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

Can open perf_event_open instead of sys_admin? #28

Open
DomineCore opened this issue Jan 31, 2023 · 2 comments
Open

Can open perf_event_open instead of sys_admin? #28

DomineCore opened this issue Jan 31, 2023 · 2 comments

Comments

@DomineCore
Copy link

Security department within my company does not allow open containers sys_admin permissions, because it is easy to produce risk.
After my guess and actual test, to the open container perf_event_open permission also can achieve the same effect, whether can give other users clue in the document?

@DomineCore DomineCore changed the title Whether the container is very dangerous, open sys_admin permissions can open perf_event_open instead of separately? Can open perf_event_open instead of sys_admin? Jan 31, 2023
@github-louis-fruleux
Copy link

Hello @DomineCore, same issue here, they didn't want to open sys_admin (rightly). So we injected a custom seccomp and opened only the perf_even_open syscall which was enough for us (raw EC2 debian + docker)

If you have the latest docker version, there is a profile for this: CAP_PERFMON (but I haven't try it though)

@DomineCore
Copy link
Author

@github-louis-fruleux Yeah, now I'm using this profile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants