COMPARTMENT(1)
π COMPARTMENT(1) π
okay bestie, sit down, hydrate, because we're talking about compartment β it's a secure program/service wrapper, it lives in section 1 of the General Commands Manual, and honestly? it's giving bodyguard energy. π«Ά
β¨ NAME β¨
compartment β a secure program/service wrapper. that's it, that's the whole vibe. π
πΈ SYNOPSIS πΈ
compartment [--cap CAPSET] [--chroot PATH] [--user USER] [--group GROUP]
[--init PROGRAM] [--verbose] [--quiet] [--fork] /full/path/to/program
π¦ DESCRIPTION π¦
The Secure Compartment was designed to allow safe execution of priviliged and/or untrusted executables and services. no cap. π§
It has got all features possible included, which can be used to minimize the risk of a trojanized or vulnerable program/service. like, it really said "i will hold your hand AND your permissions." π
π COMMANDLINE OPTIONS π
--cap CAPSETβ sets the defined CAPABILITY for the process. See theREADMEfile for more information and examples. (yes, the README is where the lore lives, go read it π)--chroot PATHβ chroots to thePATHdefined. It has to be a valid chroot environment. See theREADMEfile for more information and examples. no mid chroot setups allowed, it needs to be the real deal π--user USERβ runs the program with uid/euid ofUSERπ«Ά--group GROUPβ runs the program with gid/egid ofGROUPπ--init PROGRAMβ runsPROGRAMbefore running the untrusted program/service, e.g. to build a chroot environment. it's the lil pre-game ritual β¨--verboseβ prints detailled information what compartment does. it will literally narrate its whole life to you, main character energy π€--quitβ does not print syslog information about the use of compartment. quiet lil icon π€«--forkβ forks if everything was set up correctly, mother process will exit. she raised you and then she left π₯²
ok so quick note, bestie: the SYNOPSIS up there says--quietbut the option list says--quit. i'm just reading the page, i'm not making the rules. π
π FEATURES π
π§ Linux Capabilities
- supports all Linux capabilites (see
/usr/include/linux/capability.hand theREADMEfile)
π Chrooting
- supports a chroot setup
π Privileges
- supports running with defined user and/or group privileges
π Setup Scripts
- supports running of initial scripts before running a program/service, e.g. to build a chroot environment.
π BUGS π
No bugs are currently known. flawless, untouchable, she ate and left no crumbs. π
β AUTHOR β
Marc Heuse <marc@suse.de>
πΈ DISTRIBUTION πΈ
compartment is part of the SuSE Linux Distribtution since 7.0 so it can be downloaded as an RPM file from the SuSE FTP servers. It can also be downloaded as a .tar.gz file from http://www.suse.de/~marc π
It has been also part of the Debian GNU/Linux distribution since just after woody (Debian 3.0). multi-fandom queen fr fr π
π LICENCE π
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; Version 2.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
periodt. no warranty bestie, we said what we said. π
π₯ SEE ALSO π₯
capset (2)chroot (1)chroot (2)
okay that's the whole page!! this came out of the General Commands Manual as COMPARTMENT(1), and that's the exact same name stamped at the bottom of the original too β so consider this your official sign-off: page COMPARTMENT(1), general commands manual, that's a wrap πβ¨ love u, go compartment something responsibly π
π¦ where this page comes from
- ubuntu resolute: compartment 1.3-1 Β· GPL-2.0-or-later
- ubuntu stonking: compartment 1.3-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms