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

getting "avc: denied" messages in system logs #696

Closed
Akshaybaisla opened this issue Mar 29, 2022 · 4 comments
Closed

getting "avc: denied" messages in system logs #696

Akshaybaisla opened this issue Mar 29, 2022 · 4 comments
Labels
area/selinux Issues related to SELinux kind/bug Something isn't working

Comments

@Akshaybaisla
Copy link

On applying Flatcar recommendations as mentioned in https://www.flatcar.org/docs/latest/setup/security/selinux/ . when checking system logs getting many messages as "avc: denied". what we have to do now?
avc log message-
" localhost kernel: audit: type=1400 audit(1648446800.796:86): avc: denied { bpf } for pid=1 comm="systemd" capability=39 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=capability2 permissive=0

localhost kernel: audit: type=1400 audit(1648446800.796:91): avc: denied { perfmon } for pid=1 comm="systemd" capability=38 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=capability2 permissive=0

localhost audit[1]: AVC avc: denied { bpf } for pid=1 comm="systemd" capability=39 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=capability2 permissive=0 "

@Akshaybaisla Akshaybaisla added the kind/bug Something isn't working label Mar 29, 2022
@tormath1
Copy link
Contributor

hi @Akshaybaisla thanks for your feedback - this is a known issue: #509 and it should be solved with the next SELinux upgrade.

If these AVC messages are blocking your workload, you can still temporary keep SELinux to permissive mode.

@tormath1 tormath1 added the area/selinux Issues related to SELinux label Mar 29, 2022
@Akshaybaisla
Copy link
Author

Akshaybaisla commented Mar 30, 2022

hi @tormath1 When SELinux upgrade will be released?

@tormath1
Copy link
Contributor

Hi, upgrade is quite in progress and we mainly wait for this issue: #479 in order to ship more standard SELinux module for handling containers. You can subscribe to the issue to track progress on it.

Can you describe a bit your workload ? As far as I can tell, these errors should not impact it directly.

@tormath1
Copy link
Contributor

Fixed in: flatcar/scripts#917

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/selinux Issues related to SELinux kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants