-
Notifications
You must be signed in to change notification settings - Fork 31
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
failed to enable bpfLsmEnforcer #11
Comments
vArmor will enable the AppArmor enforcer by default. If your system does not support the AppArmor LSM, it may lead to startup failure. You can use the flag |
Hi @Danny-Wei , thanks for your answer! However, I think my system supports AppArmor LSM, as I've tried default installation with AppArmor enforcer enabled, everything is OK, so I don't know why :(
|
Can you provide the logs of agent after enabling the BPF enforcer? |
Hi @Danny-Wei , sorry there's no logs of varmor-agent, I think it's because the container of these agents even can't be created. |
It might be because the kubelet is attempting to restart the agent container, making it difficult to retrieve logs for the deleted container. You can try quickly retrieving logs with this command: Please also provide the system and kernel version information for the investigation. |
Hi @Danny-Wei , thanks for your advice |
Please provide the output of the following commands:
You can reinstall apparmor and reboot to see if it resolves this issue.
|
Hi @Danny-Wei , sorry for my delayed response, here are the output of the commands: kubectl describe Pods -n varmor $(kubectl get Pods -n varmor | grep varmor-agent | head -n 1 | awk '{print $1}')
containerd --version
runc --version
I alse tried to reinstall apparmor and reboot, the issue is still not solved with the same error
|
Hi, thanks for your response. We haven't adapted vArmor for a k8s + Docker environment for now. Could you install vArmor in a k8s + containerd environment? We will then create an environment with k8s + Docker to investigate the root cause of this issue. |
Hi @Danny-Wei thanks for your advice! I will try to install vArmor in containerd env |
I tried to enable bpfLsmEnforcer with this command:
helm install varmor varmor-0.5.4.tgz --namespace varmor --create-namespace --set image.registry="elkeid-cn-beijing.cr.volces.com" --set bpfLsmEnforcer.enabled=true
However, I found vamor-agent failed to start:
This is the error log:
It seems runc failed to open apparmor profile?
The text was updated successfully, but these errors were encountered: