Skip to main content
Logo

Parent is a simple wrapper that allows you to run a program with limited resources and access.

Available options

Resource limits

The resources available for the program can be limited using these options. The limits are enforced using the Linux kernel's rlimit.

Option Description
-m / --memory N The program's maximum memory address space in kilobytes.
-t / --cpu-time N The program's maximum CPU time in milliseconds.
-r / --real-time N The program's maximum real-time execution time in milliseconds.
--stack N The program's stack size limit in kilobytes. (-1 for unlimited)
-f / --file-size N The program's maximum file size in kilobytes that it can create or modify.
-p / --processes N The number of threads, or processes, the program can use.

I/O

Program's stdin, stdout, and stderr will by default be redirected to parent's. You can change this behaviour using these options.

Option Description
--stdin FILE Redirect a file to the program's stdin.
--stdout FILE Redirect the program's stdout to a file.
--stderr FILE Redirect the program's stdout to a file.
--stderr-to-stdout Redirect the program's stderr to stdout.

File access

The program can access any file on the system by default. You can use these settings to restrict its access. Make sure you at least allow access to the program itself, since if you enable any of these options, the default behavior will be to prevent access to any files. File access is limited using Linux kernel's landlock. These options can be used multiple times to allow access to multiple paths.

Option Description
--fs-readonly PATH Allow the program read from files or folders located under the provided path.
--fs-writeonly PATH Allow the program write to files of folders located under the provided path.
--fs-readwrite PATH Allow the program read or write to files of folders located under the provided path.

Environment

The program inherits environment variables by default. It is possible to disable default inheritance and pass additional environment variables.

Option Description
--env NAME VALUE Set an environment variable.
--empty-env Do not inherit environment.

Syscalls

The program cannot use kill syscall by default (to prevent it from sending SIGSTOP to parent) while --seccomp-default is not set. You can use these options to allow or deny certain syscalls.

Option Description
--seccomp-default POLICY Default policy for syscalls.
--seccomp-allow SYSCALL Allow certain syscalls.
--seccomp-deny SYSCALL Deny certain syscalls (return ERRNO 1).
--seccomp-kill SYSCALL Deny certain syscalls (kill process).

Miscelaneous options

Option Description
--drop-caps Drop the program's capabilities.
-s / --stats FILE Save execution statistics to a file.

Metadata

Release files for parent 26.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for parent 26.1
File Size Uploaded
parent-26.1.tar.gz 5.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for parent 26.1
File Interpreter ABI Platform
parent-26.1-py3-none-any.whl Python 3 none any Details

Total release size: 11.3 kB

Release files / parent-26.1.tar.gz

Download URL parent-26.1.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ecb51f63f1cdee90d9b227b0fd6fa5fa2925e6340f57f6964e79a197bf4a014e
BLAKE2b-256 checksum
How to use checksums
5bb85f65285cff09f4e83d66fa872e4049614ba72be2470cd41d9a5c571a83c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.1 CPython/3.14.7 Linux/7.2.8-arch1-2

Release files / parent-26.1-py3-none-any.whl

Download URL parent-26.1-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c671d62f936aca1990e4421d17c96697a84c8c7d73126b7767527837f5630cd3
BLAKE2b-256 checksum
How to use checksums
4edeb44f98361695b11f4dcae6c8b496e9a6583c7ce24879081f818fb9cb2e52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.1 CPython/3.14.7 Linux/7.2.8-arch1-2

Release history Release notifications | RSS feed

This release

26.1 This release

2 release files

25.2

2 release files

25.1

2 release files

24.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page