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

support inspecting user.rootlesscontainers xattr #346

Open
AkihiroSuda opened this issue Jul 29, 2020 · 1 comment
Open

support inspecting user.rootlesscontainers xattr #346

AkihiroSuda opened this issue Jul 29, 2020 · 1 comment

Comments

@AkihiroSuda
Copy link
Member

We should have a utility command to show the user.rootlesscontainers xattr value in a human-readable format.

e.g.

$ id -u
1001

$ ls -ln /path/to/bundle/etc/
...
-rw-r----- 1 1001 1001 422 May 29 23:20 shadow

$ getfattr -d -e hex -m user.rootlesscontainers /path/to/bundle/rootfs/etc/shadow 
...
user.rootlesscontainers=0xdeadbeef...

$ umoci ls-bundle /path/to/bundle/etc/
-rw-r----- 1 0 42 422 May 29 23:20 shadow
@cyphar
Copy link
Member

cyphar commented Jul 30, 2020

Not a bad idea -- though it'd probably be called something like umoci raw rootless-ls.

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

No branches or pull requests

2 participants