Replies: 12 comments 1 reply
-
Can you try |
Beta Was this translation helpful? Give feedback.
-
--security-opt unmask=/sys/kernel Should also work, as I understand it. |
Beta Was this translation helpful? Give feedback.
-
Both work, but fail as soon as I add |
Beta Was this translation helpful? Give feedback.
-
$ podman run --network host --rm --security-opt unmask=ALL docker.io/fedora:34 ls /sys/kernel
$ podman run --rm --security-opt unmask=ALL docker.io/fedora:34 ls /sys/kernel
boot_params
btf
cgroup
config
debug
dmabuf
fscaps
iommu_groups
irq
kexec_crash_loaded
kexec_crash_size
kexec_loaded
livepatch
mm
notes
profiling
rcu_expedited
rcu_normal
reboot
security
slab
software_nodes
sunrpc
tracing
uevent_seqnum
vmcoreinfo |
Beta Was this translation helpful? Give feedback.
-
This works in Toolbx containers:
So, you might have to turn a few more knobs. Maybe run |
Beta Was this translation helpful? Give feedback.
-
toolbox looks interesting, I think I'm more or less emulating it with my giant script. However, it doesn't like me: $ toolbox create --image docker.io/scylladb/scylla-toolchain:fedora-34-20220522
Created container: scylla-toolchain-fedora-34-20220522
Enter with: toolbox enter scylla-toolchain-fedora-34-20220522
$ toolbox enter scylla-toolchain-fedora-34-20220522
Error: invalid entry point PID of container scylla-toolchain-fedora-34-20220522 |
Beta Was this translation helpful? Give feedback.
-
What does this say:
|
Beta Was this translation helpful? Give feedback.
-
This explains the failure:
Toolbx uses It would be best if the |
Beta Was this translation helpful? Give feedback.
-
sudo is installed in the toolchain image. |
Beta Was this translation helpful? Give feedback.
-
ah, but passwd is not. I typically bind-mount /etc/passwd: https://github.com/scylladb/scylla/blob/adda43edc75b901b2329bca8f3eb74596698d05f/tools/toolchain/dbuild#L147 |
Beta Was this translation helpful? Give feedback.
-
The entry point of a Toolbx container does a Since I can't say off-hand what the trade-offs would be, if we decided to bind mount |
Beta Was this translation helpful? Give feedback.
-
@avikivity were you able to do your tracing with |
Beta Was this translation helpful? Give feedback.
-
In a container:
I'd like to run some tracing in a (privileged) container, but I can't mount /sys/kernel (even with a direct -v argument). Is there a way to do it?
Beta Was this translation helpful? Give feedback.
All reactions