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

No executable bit on the checkpoint directory #153

Closed
fduthilleul opened this issue Dec 12, 2024 · 1 comment · Fixed by #154
Closed

No executable bit on the checkpoint directory #153

fduthilleul opened this issue Dec 12, 2024 · 1 comment · Fixed by #154

Comments

@fduthilleul
Copy link

Some checkpointctl commands are failing on RHEL9 as the checkpoint directory has no executable bit set.

drw-------.  2 lab-user users    4096 Dec 11 15:57 checkpoint
$ checkpointctl inspect checkpoint.tar --ps-tree --metadata
Error: unpacking of checkpoint archive failed: open /tmp/checkpointctl1110485167/checkpoint/core-1.img: permission denied

The same command is working when running as root

[lab-user@rhel9 ~]$ sudo checkpointctl inspect checkpoint.tar --ps-tree --metadata

Displaying container checkpoint tree view from checkpoint.tar

blog
├── Image: redacted
├── ID: redacted
├── Runtime: runc
├── Created: 2024-12-11T13:14:15.112887288Z
├── Checkpointed: 2024-12-11T15:57:04Z
├── Engine: CRI-O
@adrianreber
Copy link
Member

Thanks for the report. I can reproduce this locally. Should be an easy fix by just setting the right bits after unpacking.

We probably should also take a look why CRI-O creates the directory with the wrong bits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants