Skip to content

Commit

Permalink
Set owner/group to root/root when unarchiving kata-containers (kubern…
Browse files Browse the repository at this point in the history
…etes-sigs#10338)

Set owner/group to root/root when unarchiving kata-containers binary to prevent kata-containers binaries/directories and especially / from getting chowned to 1001:123, the file owner specified in the kata-containers archive
  • Loading branch information
rybnico authored and pedromcpedro committed May 8, 2024
1 parent fb715f1 commit cf7e54b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roles/container-engine/kata-containers/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
src: "{{ downloads.kata_containers.dest }}"
dest: "/"
mode: 0755
owner: root
group: root
remote_src: yes

- name: Kata-containers | Create config directory
Expand Down

0 comments on commit cf7e54b

Please sign in to comment.