COMPARTMENT(1)

πŸ“¦
version 1.3 Β· 2 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– 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 the README file for more information and examples. (yes, the README is where the lore lives, go read it πŸ“–)
  • --chroot PATH β€” chroots to the PATH defined. It has to be a valid chroot environment. See the README file 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 of USER 🫢
  • --group GROUP β€” runs the program with gid/egid of GROUP πŸ’œ
  • --init PROGRAM β€” runs PROGRAM before 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 --quiet but 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.h and the README file)

πŸ”’ 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