S6-ACCESSRULES-FS-FROM-CDB(8)

πŸ“¦ version 2.15.1.0, in nixpkgs unstable

πŸ¦‹ NAME

okay so bestie, meet s6-accessrules-fs-from-cdb β€” it's the decompile girlie πŸ’…. What she does is take a CDB[1] database (that's a ruleset compiled for s6-ipcserver-access(8) or s6-tcpserver-access(8), and built with s6-accessrules-cdb-from-fs(8)) and turn it back into a plain filesystem ruleset. Like un-zipping but for access rules, no cap. This page lives in the System Manager's Manual, section 8, iykyk ✨


🌸 SYNOPSIS

s6-accessrules-fs-from-cdb dir cdbfile

πŸ’– DESCRIPTION

So s6-accessrules-fs-from-cdb decompiles the CDB[1] file cdbfile into the directory dir, then exits 0. That's it, that's the whole job, and she eats every time πŸ”₯

πŸ’€ real talk though: dir must not exist prior to the decompilation. Like, it has to be brand new. She's not merging, she's creating.

Also highkey important: dir must be considered a work in progress for as long as s6-accessrules-fs-from-cdb is running. It is only safe to use dir as a ruleset once the program has exited. So don't go peeking at it mid-run, bestie, it's giving unfinished 🫢

If s6-accessrules-fs-from-cdb fails at some point, the partial arborescence at dir is removed. Cleanup queen ✨ But β€” and this is the sad part 😭 β€” that doesn't happen if s6-accessrules-fs-from-cdb is interrupted by a signal. So if you hit it with a signal, you get to clean up your own mess. Sorry, those are the rules.

After the program successfully completes: if cdbfile was a suitable candidate for the -x option of s6-ipcserver-access(8) or s6-tcpserver-access(8), then dir will be a suitable candidate for the -i option of the same program, implementing the same ruleset. So the round trip is genuinely faithful β€” iconic behavior πŸ‘‘


⭐ SEE ALSO

This man page is ported from the authoritative documentation at: https://skarnet.org/software/s6/s6-accessrules-fs-from-cdb.html 🌈


πŸ‘‘ AUTHORS

  • Laurent Bercot
  • Alexis <flexibeast@gmail.com> (man page port)

πŸŽ€ cute lil sign-off: this page is from Debian, dated September 29, 2021, and the source/version line reads S6-ACCESSRULES-FS-FROM-CDB(8). Bye bestie, go decompile something pretty πŸ’œ
πŸ“¦ where this page comes from