No project description provided
Project description
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 located under the provided path. |
--fs-readwrite PATH |
Allow the program write to files 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. |
Miscelaneous options
Option | Description |
---|---|
--drop-caps |
Drop the program's capabilities. |
-s / --stats FILE |
Save execution statistics to a file. |
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file parent-24.1.tar.gz
.
File metadata
- Download URL: parent-24.1.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Linux/6.7.6-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa7ab076fe1250461229b004c314a24a8c915a7604fe2554b819942e50f5f46e |
|
MD5 | 2ddd4a0e6b7b859c02751a4d2c58bbea |
|
BLAKE2b-256 | 4f9a64bde470a4d94f200d0af65007c20b2a6e1602aec518e4a753b36e5471a2 |
File details
Details for the file parent-24.1-py3-none-any.whl
.
File metadata
- Download URL: parent-24.1-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Linux/6.7.6-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 049ec6af46ed01bba49121c67c55ba141b133f2570ff09667f4377e0a505d6ed |
|
MD5 | 2034550f02f4d7a838d5eb69fa9bfdf5 |
|
BLAKE2b-256 | 849f33247324b92671c278b689d4616333d15de4a607a1b952e47859799af0b8 |