377 questions
Best practices
0
votes
2
replies
56
views
Isolating packages without using vbox/docker/timeshift
My goal is to not let some system packages leave clutter on my system, and I am pretty low on disk space, so I'd like to avoid using vbox, docker or timeshift for this purpose. These packages are ...
3
votes
2
answers
131
views
How to setup chroot and run static binary in c++ [closed]
I am trying to make a c++ program that runs a binary in jail.
There is three files that we are working with
utils/runner.cpp:
#include <unistd.h>
#include <iostream>
#include <cstdlib&...
0
votes
0
answers
76
views
Transform /etc/init.d/nginx openrc with chroot one
I chrooted nginx with success. When I run
chroot /srv/http/ /usr/bin/nginx -g 'pid /run/nginx.pid;'
all is good.
My plan is to incorporate this (overall -g 'pid /run/nginx.pid;' part) to my default /...
0
votes
1
answer
426
views
chroot cannot recognize the file's existance
Trying to do LFS, but now stalled, because chroot(1) doesn't work properly.
#!/bin/bash
_place="$(pwd)/jail"
# Clear before do something
for _x in dev/shm run sys proc dev/pts dev; do
...
0
votes
0
answers
376
views
Install Package in Chroot. Script running outside Chroot
I am trying to do a kind of analyzer. To do that I need to work with different distributions I decided on trying chroot. What im trying to do is,
using a python script on main machine
Go into chroot ...
1
vote
0
answers
64
views
Finding difference between .RAW/QCOW images and partition
Are there any available tools for locating the filesystem differences between an image (.RAW) and the image when written to a partition.
In other words, given a image.raw if I write that image to a ...
0
votes
1
answer
361
views
How do I make chroot run a command in the same directory in the new rootfs as I am in now?
I have various other Linux distros on other partitions and am trying to write a command called "on" that will run a shell command in that distro as the same user and in the same directory as ...
1
vote
1
answer
189
views
Attempt to elevate to chroot capabilities but fails, WHY?
In order to execute
must(syscall.Chroot("/home/nora/Bureau/Perso/os/ubuntu-base-14.04-core-amd64"))
I need to grant SYS_CHROOT capability to the process as follows :
// Temporarily add ...
0
votes
1
answer
789
views
How docker implements filesystem level isolation?
I'm trying to find out how docker implements filesystem level isolation, I've done some reading about how container isolate filesystem like https://www.oreilly.com/library/view/container-security/...
1
vote
0
answers
210
views
Yocto reciepe to Jail a ssh user to a particular directory
I am learning yocto , writing a recipe to jail/restrict a SSH user to a particular directory. For example I have created a user in machine.conf file
EXTRA_USERS_PARAMS = " useradd -P linuxopsys ...
3
votes
1
answer
2k
views
How to run python code with root permissions in sourced environment
I have created pyenv environment (/home/username/python_env/) with some additional libraries (like PyYaml, Pillow etc).
Everything is working fine until I need to change /etc/resolv.conf from inside ...
0
votes
1
answer
718
views
Python subprocess.run cannot execute in chroot
I have two files, a.py:
import os, subprocess
os.chroot(".")
subprocess.run(["./b.sh"])
and b.sh:
#!/usr/bin/env bash
echo whateva
in an otherwise empty directory. b.sh has ...
0
votes
0
answers
99
views
Has anyone done chroot for Db2 LUW?
I am attempting chroot of Db2 LUW. I've copied all the dependent libraries, executables in the chroot directory. All Db2 commands like db2 CLP, db2trc are working fine. However, when I attempt to ...
-1
votes
1
answer
172
views
Multiple OS at Kubernetes pod in GCP
We want to use multiple OS in VDI without using multiple VDI in GCP.
So can we put multiple OS on single pod using different mount path.
if yes, can we use chroot for switch OS.
How can we create disk ...
0
votes
0
answers
28
views
Jenkins and mock on AWS
We use a physical server for our Jenkins build system at the moment and I am looking into the feasibility of moving it to AWS. The build jobs are script executions and the key aspect is that those ...