]> git.ipfire.org Git - pakfire.git/log
pakfire.git
3 years agobuild: No longer include glob.h
Michael Tremer [Mon, 8 Aug 2022 16:45:47 +0000 (16:45 +0000)] 
build: No longer include glob.h

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agobuild: Open source archive and extra some metadata
Michael Tremer [Mon, 8 Aug 2022 16:42:30 +0000 (16:42 +0000)] 
build: Open source archive and extra some metadata

This saves us on guessing what package we might want to build later.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agobuild: Split heavy lifting into a separate exec function
Michael Tremer [Mon, 8 Aug 2022 16:29:23 +0000 (16:29 +0000)] 
build: Split heavy lifting into a separate exec function

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agobuild: Set default target
Michael Tremer [Mon, 8 Aug 2022 16:23:18 +0000 (16:23 +0000)] 
build: Set default target

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agobuild: Export pakfire_build_ref/_unref
Michael Tremer [Mon, 8 Aug 2022 16:06:16 +0000 (16:06 +0000)] 
build: Export pakfire_build_ref/_unref

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agobuild: Set errno to EINVAL when build ID is of an invalid format
Michael Tremer [Mon, 8 Aug 2022 15:49:52 +0000 (15:49 +0000)] 
build: Set errno to EINVAL when build ID is of an invalid format

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agobuild: Destroy our cgroup after we are done
Michael Tremer [Mon, 8 Aug 2022 15:49:06 +0000 (15:49 +0000)] 
build: Destroy our cgroup after we are done

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agojail: Free reference to cgroup when freeing jail
Michael Tremer [Mon, 8 Aug 2022 15:47:24 +0000 (15:47 +0000)] 
jail: Free reference to cgroup when freeing jail

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agotests: build: Try to create with invalid IDs
Michael Tremer [Mon, 8 Aug 2022 15:45:59 +0000 (15:45 +0000)] 
tests: build: Try to create with invalid IDs

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agojail: Don't create own cgroups any more
Michael Tremer [Mon, 8 Aug 2022 15:40:57 +0000 (15:40 +0000)] 
jail: Don't create own cgroups any more

There is a new interface now which can be used to launch anything into
the correct cgroup from the very beginning.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agobuild: Connect jail with cgroup
Michael Tremer [Mon, 8 Aug 2022 15:35:35 +0000 (15:35 +0000)] 
build: Connect jail with cgroup

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agobuild: Create a jail for each build
Michael Tremer [Mon, 8 Aug 2022 15:29:18 +0000 (15:29 +0000)] 
build: Create a jail for each build

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agotests: Add simple create/free test for builds
Michael Tremer [Mon, 8 Aug 2022 15:24:27 +0000 (15:24 +0000)] 
tests: Add simple create/free test for builds

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agobuilds: Create a new cgroup
Michael Tremer [Mon, 8 Aug 2022 15:23:50 +0000 (15:23 +0000)] 
builds: Create a new cgroup

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agobuild: Start creating a new build environment
Michael Tremer [Mon, 8 Aug 2022 15:02:48 +0000 (15:02 +0000)] 
build: Start creating a new build environment

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agocgroup: Add controllers
Michael Tremer [Mon, 8 Aug 2022 14:47:01 +0000 (14:47 +0000)] 
cgroup: Add controllers

This is really not working well so far. But I thought it would be better
to commit this and work on it than creating another monster commit.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agocgroup: Start again from scratch
Michael Tremer [Mon, 8 Aug 2022 10:34:25 +0000 (10:34 +0000)] 
cgroup: Start again from scratch

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agotests: jail: Send signals to ourselves
Michael Tremer [Thu, 4 Aug 2022 15:54:18 +0000 (15:54 +0000)] 
tests: jail: Send signals to ourselves

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agojail: Close the original fds for stdin/stdout after copying
Michael Tremer [Thu, 4 Aug 2022 15:41:04 +0000 (15:41 +0000)] 
jail: Close the original fds for stdin/stdout after copying

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agotests: jail: Add check if we are leaking any file descriptors
Michael Tremer [Thu, 4 Aug 2022 15:33:11 +0000 (15:33 +0000)] 
tests: jail: Add check if we are leaking any file descriptors

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agojail: Implement better logging for the child process
Michael Tremer [Thu, 4 Aug 2022 15:18:54 +0000 (15:18 +0000)] 
jail: Implement better logging for the child process

The child process used to dump any logging to the standard output/error
which is not useful when we want to collect any actual output of the
process that was called.

This patch adds extra pipes (one for each log level - I know) and passes
those log messages on to the regular logger (past the jail log
callback).

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agojail: Automatically determine how many fds we have in the array
Michael Tremer [Thu, 4 Aug 2022 13:40:23 +0000 (13:40 +0000)] 
jail: Automatically determine how many fds we have in the array

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agojail: Don't open log descriptors are non-blocking
Michael Tremer [Thu, 4 Aug 2022 13:39:30 +0000 (13:39 +0000)] 
jail: Don't open log descriptors are non-blocking

We want write() to block if the pipe is full and not drop any messages.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agojail: Do not remove trailing newline when capturing log
Michael Tremer [Thu, 4 Aug 2022 10:11:21 +0000 (10:11 +0000)] 
jail: Do not remove trailing newline when capturing log

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agopython: Add switch to return output on execute
Michael Tremer [Thu, 4 Aug 2022 10:07:02 +0000 (10:07 +0000)] 
python: Add switch to return output on execute

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agojail: Actually connect stdout/stderr to logger
Michael Tremer [Wed, 3 Aug 2022 16:39:33 +0000 (16:39 +0000)] 
jail: Actually connect stdout/stderr to logger

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agotests: Rename execute.py to jail.py
Michael Tremer [Wed, 3 Aug 2022 16:02:22 +0000 (16:02 +0000)] 
tests: Rename execute.py to jail.py

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agotests: command: Rename pid to print-pid
Michael Tremer [Wed, 3 Aug 2022 15:59:54 +0000 (15:59 +0000)] 
tests: command: Rename pid to print-pid

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agojail: Implement setting nice level
Michael Tremer [Wed, 3 Aug 2022 15:58:08 +0000 (15:58 +0000)] 
jail: Implement setting nice level

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agoexecute: Drop old environment
Michael Tremer [Wed, 3 Aug 2022 15:32:53 +0000 (15:32 +0000)] 
execute: Drop old environment

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agojail: Unify the wait logic for processes and use pidfd
Michael Tremer [Wed, 3 Aug 2022 15:21:49 +0000 (15:21 +0000)] 
jail: Unify the wait logic for processes and use pidfd

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agopython: Rework Pakfire.execute() using jail
Michael Tremer [Wed, 3 Aug 2022 14:22:43 +0000 (14:22 +0000)] 
python: Rework Pakfire.execute() using jail

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agojail: Export in libpakfire
Michael Tremer [Wed, 3 Aug 2022 10:27:47 +0000 (10:27 +0000)] 
jail: Export in libpakfire

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agojail: Move pakfire_execute_shell/ldconfig
Michael Tremer [Wed, 3 Aug 2022 10:22:27 +0000 (10:22 +0000)] 
jail: Move pakfire_execute_shell/ldconfig

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agojail: Add option to collect stdout
Michael Tremer [Wed, 3 Aug 2022 10:17:37 +0000 (10:17 +0000)] 
jail: Add option to collect stdout

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agoexecute: Drop unused pakfire_execute_script function
Michael Tremer [Wed, 3 Aug 2022 09:35:41 +0000 (09:35 +0000)] 
execute: Drop unused pakfire_execute_script function

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agobuild: Replace pakfire_execute_script with new jail functions
Michael Tremer [Wed, 3 Aug 2022 09:32:17 +0000 (09:32 +0000)] 
build: Replace pakfire_execute_script with new jail functions

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agoscriptlets: Use new jail functions to run scripts
Michael Tremer [Wed, 3 Aug 2022 09:27:13 +0000 (09:27 +0000)] 
scriptlets: Use new jail functions to run scripts

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agojail: Add convenience function to run scripts
Michael Tremer [Wed, 3 Aug 2022 09:26:56 +0000 (09:26 +0000)] 
jail: Add convenience function to run scripts

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agojail: Configure UID/GID mapping correctly for root
Michael Tremer [Wed, 3 Aug 2022 09:08:07 +0000 (09:08 +0000)] 
jail: Configure UID/GID mapping correctly for root

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agojail: Create fds for logging as non-blocking straight away
Michael Tremer [Wed, 3 Aug 2022 09:01:38 +0000 (09:01 +0000)] 
jail: Create fds for logging as non-blocking straight away

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agojail: Use struct in execution context
Michael Tremer [Wed, 3 Aug 2022 08:59:35 +0000 (08:59 +0000)] 
jail: Use struct in execution context

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agojail: Move completed_fd into ctx
Michael Tremer [Wed, 3 Aug 2022 08:47:17 +0000 (08:47 +0000)] 
jail: Move completed_fd into ctx

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agobuild: Use factory function to create jail
Michael Tremer [Wed, 3 Aug 2022 08:44:05 +0000 (08:44 +0000)] 
build: Use factory function to create jail

This jail can be configured and customised for the build process.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agoexecute: Replace old code with new jail
Michael Tremer [Wed, 3 Aug 2022 08:42:18 +0000 (08:42 +0000)] 
execute: Replace old code with new jail

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agobuild: Drop separate logging callback
Michael Tremer [Tue, 2 Aug 2022 18:26:51 +0000 (18:26 +0000)] 
build: Drop separate logging callback

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agoexecute: Drop unused pakfire_execute_command function
Michael Tremer [Tue, 2 Aug 2022 18:12:32 +0000 (18:12 +0000)] 
execute: Drop unused pakfire_execute_command function

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agoexecute: Use pakfire_jail_run() to call ldconfig
Michael Tremer [Tue, 2 Aug 2022 18:09:46 +0000 (18:09 +0000)] 
execute: Use pakfire_jail_run() to call ldconfig

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agoexecute: Use convenience function to run shell
Michael Tremer [Tue, 2 Aug 2022 18:09:27 +0000 (18:09 +0000)] 
execute: Use convenience function to run shell

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agojail: Add convenience function to run simple commands
Michael Tremer [Tue, 2 Aug 2022 18:07:12 +0000 (18:07 +0000)] 
jail: Add convenience function to run simple commands

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agoexecute: Use new jail to run shell
Michael Tremer [Tue, 2 Aug 2022 17:58:25 +0000 (17:58 +0000)] 
execute: Use new jail to run shell

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agojail: Add interface to simply execute scripts
Michael Tremer [Tue, 2 Aug 2022 17:48:45 +0000 (17:48 +0000)] 
jail: Add interface to simply execute scripts

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agojail: Add function to import environment
Michael Tremer [Tue, 2 Aug 2022 17:40:22 +0000 (17:40 +0000)] 
jail: Add function to import environment

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agojail: Set default logging callback
Michael Tremer [Tue, 2 Aug 2022 17:32:44 +0000 (17:32 +0000)] 
jail: Set default logging callback

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agojail: Implement changing logging callback
Michael Tremer [Tue, 2 Aug 2022 17:30:07 +0000 (17:30 +0000)] 
jail: Implement changing logging callback

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agojail: Import logging stuff from execute.c
Michael Tremer [Tue, 2 Aug 2022 17:27:28 +0000 (17:27 +0000)] 
jail: Import logging stuff from execute.c

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agojail: Fix signal handling
Michael Tremer [Tue, 2 Aug 2022 16:37:41 +0000 (16:37 +0000)] 
jail: Fix signal handling

We need to stricly send uint64_t.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agomount: Add /dev/shm
Michael Tremer [Tue, 2 Aug 2022 16:23:40 +0000 (16:23 +0000)] 
mount: Add /dev/shm

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agomount: Bring back /tmp to jail
Michael Tremer [Tue, 2 Aug 2022 16:21:52 +0000 (16:21 +0000)] 
mount: Bring back /tmp to jail

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agomount: Mount a new instance of /dev/pts
Michael Tremer [Tue, 2 Aug 2022 16:09:25 +0000 (16:09 +0000)] 
mount: Mount a new instance of /dev/pts

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agomount: Make /dev/mqueue available in jail
Michael Tremer [Tue, 2 Aug 2022 16:03:57 +0000 (16:03 +0000)] 
mount: Make /dev/mqueue available in jail

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agomount: Fix mounting any file systems from the host system
Michael Tremer [Tue, 2 Aug 2022 16:01:40 +0000 (16:01 +0000)] 
mount: Fix mounting any file systems from the host system

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agojail: Try bind-mounting device nodes when we cannot use mknod()
Michael Tremer [Tue, 2 Aug 2022 15:30:28 +0000 (15:30 +0000)] 
jail: Try bind-mounting device nodes when we cannot use mknod()

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agojail: Apply syscall filter
Michael Tremer [Tue, 2 Aug 2022 14:47:34 +0000 (14:47 +0000)] 
jail: Apply syscall filter

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agojail: Execute command
Michael Tremer [Tue, 2 Aug 2022 14:44:38 +0000 (14:44 +0000)] 
jail: Execute command

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agojail: Drop capabilities
Michael Tremer [Tue, 2 Aug 2022 14:40:09 +0000 (14:40 +0000)] 
jail: Drop capabilities

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agojail: Set open file limit
Michael Tremer [Tue, 2 Aug 2022 14:36:22 +0000 (14:36 +0000)] 
jail: Set open file limit

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agojail: Set personality
Michael Tremer [Tue, 2 Aug 2022 14:35:12 +0000 (14:35 +0000)] 
jail: Set personality

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agojail: Mount all default filesystems
Michael Tremer [Tue, 2 Aug 2022 14:17:34 +0000 (14:17 +0000)] 
jail: Mount all default filesystems

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agojail: Fix setting UID/GID in namespace
Michael Tremer [Tue, 2 Aug 2022 14:11:08 +0000 (14:11 +0000)] 
jail: Fix setting UID/GID in namespace

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agojail: Make the client process wait until the parent has finished initialization
Michael Tremer [Tue, 2 Aug 2022 11:07:47 +0000 (11:07 +0000)] 
jail: Make the client process wait until the parent has finished initialization

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agojail: Perform UID/GID setup for new namespace
Michael Tremer [Tue, 2 Aug 2022 10:50:41 +0000 (10:50 +0000)] 
jail: Perform UID/GID setup for new namespace

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agojail: Implement first steps of running a command in jail
Michael Tremer [Tue, 2 Aug 2022 10:35:30 +0000 (10:35 +0000)] 
jail: Implement first steps of running a command in jail

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agoMakefile: Define TEST_STUB_ROOT in testsuite
Michael Tremer [Tue, 2 Aug 2022 10:29:49 +0000 (10:29 +0000)] 
Makefile: Define TEST_STUB_ROOT in testsuite

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agojail: Introduce interactive jails
Michael Tremer [Tue, 2 Aug 2022 09:11:39 +0000 (09:11 +0000)] 
jail: Introduce interactive jails

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agojail: Add flags
Michael Tremer [Tue, 2 Aug 2022 09:02:54 +0000 (09:02 +0000)] 
jail: Add flags

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agojail: Add prototype for execution function
Michael Tremer [Tue, 2 Aug 2022 08:59:53 +0000 (08:59 +0000)] 
jail: Add prototype for execution function

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agojail: Set some default environment variables
Michael Tremer [Tue, 2 Aug 2022 08:55:09 +0000 (08:55 +0000)] 
jail: Set some default environment variables

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agojail: Implement setting environment variables
Michael Tremer [Tue, 2 Aug 2022 08:50:48 +0000 (08:50 +0000)] 
jail: Implement setting environment variables

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agojail: Log when jails are created/destroyed
Michael Tremer [Tue, 2 Aug 2022 08:23:21 +0000 (08:23 +0000)] 
jail: Log when jails are created/destroyed

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agotests: Add a simple test for jails
Michael Tremer [Tue, 2 Aug 2022 08:13:22 +0000 (08:13 +0000)] 
tests: Add a simple test for jails

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agojail: Add basic type
Michael Tremer [Tue, 2 Aug 2022 08:01:46 +0000 (08:01 +0000)] 
jail: Add basic type

The goal is to split execute.c into a more flexible API.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agoexecute: Split creation of namespaces into two steps
Michael Tremer [Tue, 2 Aug 2022 07:46:33 +0000 (07:46 +0000)] 
execute: Split creation of namespaces into two steps

This is needed to create a new user namespace first in which we can do
some first stage of initialization. Then, we will start a new process in
that new namespace which will finish initialization.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agoexecute: Add flags to the environment
Michael Tremer [Fri, 22 Jul 2022 09:11:04 +0000 (09:11 +0000)] 
execute: Add flags to the environment

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agoexecute: Drop creating a new cgroup in the parent process
Michael Tremer [Fri, 22 Jul 2022 09:09:44 +0000 (09:09 +0000)] 
execute: Drop creating a new cgroup in the parent process

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agotests: execute: Check if the process has received PID 1
Michael Tremer [Fri, 22 Jul 2022 08:39:50 +0000 (08:39 +0000)] 
tests: execute: Check if the process has received PID 1

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agotests: execute: Add test to catch exceptions in logger
Michael Tremer [Thu, 21 Jul 2022 10:40:38 +0000 (10:40 +0000)] 
tests: execute: Add test to catch exceptions in logger

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agotests: command: Print PID
Michael Tremer [Thu, 21 Jul 2022 10:36:23 +0000 (10:36 +0000)] 
tests: command: Print PID

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agotests: command: Build a fork bomb
Michael Tremer [Thu, 21 Jul 2022 10:34:20 +0000 (10:34 +0000)] 
tests: command: Build a fork bomb

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agotests: execute: Check if logger returned the correct output
Michael Tremer [Thu, 21 Jul 2022 10:23:15 +0000 (10:23 +0000)] 
tests: execute: Check if logger returned the correct output

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agotests: command: All option to exhaust all memory
Michael Tremer [Thu, 21 Jul 2022 10:12:59 +0000 (10:12 +0000)] 
tests: command: All option to exhaust all memory

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agotests: execute: Generate some random output for tests
Michael Tremer [Thu, 21 Jul 2022 09:57:42 +0000 (09:57 +0000)] 
tests: execute: Generate some random output for tests

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agotests: execute: Replace former dummy commands
Michael Tremer [Thu, 21 Jul 2022 08:32:02 +0000 (08:32 +0000)] 
tests: execute: Replace former dummy commands

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agotests: execute: Add test to return environment variables
Michael Tremer [Thu, 21 Jul 2022 08:30:47 +0000 (08:30 +0000)] 
tests: execute: Add test to return environment variables

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agotests: execute: Add a simple echo command that prints lines
Michael Tremer [Thu, 21 Jul 2022 08:25:53 +0000 (08:25 +0000)] 
tests: execute: Add a simple echo command that prints lines

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agotests: execute: Replace exit code tests with the stub command
Michael Tremer [Thu, 21 Jul 2022 08:18:48 +0000 (08:18 +0000)] 
tests: execute: Replace exit code tests with the stub command

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agotests: Run execute tests in the stub environment
Michael Tremer [Thu, 21 Jul 2022 08:18:21 +0000 (08:18 +0000)] 
tests: Run execute tests in the stub environment

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agotests: Build scaffolding for a simple statically linked command
Michael Tremer [Tue, 19 Jul 2022 16:39:56 +0000 (16:39 +0000)] 
tests: Build scaffolding for a simple statically linked command

This can then be used to test the execution container.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agosnapshot: Show throughput and ETA in progress bar
Michael Tremer [Tue, 19 Jul 2022 16:27:59 +0000 (16:27 +0000)] 
snapshot: Show throughput and ETA in progress bar

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agoutil: Drop any custom timespec functions
Michael Tremer [Tue, 19 Jul 2022 16:23:13 +0000 (16:23 +0000)] 
util: Drop any custom timespec functions

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>