We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
General Information
digitalocean managed cluster (reproducible on k3s as well)
uname -a
6.1.0-21-amd64, Debian GNU/Linux 12 (bookworm), linux
kubectl version
Client Version: v1.29.1+k3s1 Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3 Server Version: v1.30.1
To Reproduce
make sure that file visibility is enabled for test namespace or global default
Ref: https://github.com/kubearmor/KubeArmor/blob/main/getting-started/kubearmor_visibility.md
apiVersion: apps/v1 kind: Deployment metadata: labels: app: nginx name: nginx spec: replicas: 1 selector: matchLabels: app: nginx template: metadata: labels: app: nginx spec: containers: - image: nginx imagePullPolicy: Always name: nginx volumeMounts: - mountPath: /sys/kernel/security name: sys-kernel-security-path volumes: - hostPath: path: /sys/kernel/security type: Directory name: sys-kernel-security-path
apiVersion: security.kubearmor.com/v1 kind: KubeArmorPolicy metadata: name: ksp-block-host-mount spec: action: Block file: matchDirectories: - dir: /tmp/ recursive: true - dir: /sys/kernel/ recursive: true selector: matchLabels: app: nginx
karmor logs
POD=$(kubectl get pod -l app=nginx -o name ) \ kubectl exec -it $POD -- bash -c 'cat /sys/kernel/security/lsm'
Expected behavior
Operation: File
Resource: /sys/kernel/security/lsm
/sys/kernel/security/lsm
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug Report
General Information
uname -a
)kubectl version
, ...)To Reproduce
make sure that file visibility is enabled for test namespace or global default
Ref: https://github.com/kubearmor/KubeArmor/blob/main/getting-started/kubearmor_visibility.md
Expected behavior
Operation: File
andResource: /sys/kernel/security/lsm
/sys/kernel/security/lsm
fileThe text was updated successfully, but these errors were encountered: