kubectl exec <pod_name> -- ls -l <file_path>
. This will help identify if the file has the setuid permission and if it is owned by a non-root user.remediation.yaml
) with the following content:chmod
command is used to remove the setuid permission from the /usr/bin/sudo
binary. Adjust the script accordingly based on your specific requirements and environment.