CAPRINT(1)

✨ CAPRINT β€” Capability Ambient Print ✨

okay bestie, gather round πŸ’– this is caprint, a lil tool from the General Commands Manual section that peeks at the ambient capabilities of a running program. no cap, it's giving "who gave this process extra powers" energy πŸ‘‘


🌸 NAME 🌸

caprint β€” Capability Ambient Print πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

caprint [ OPTIONS ] [ pid ]

πŸ¦‹ DESCRIPTION πŸ¦‹

so like, caprint shows you the ambient capabilities of a running program, periodt. you can pass a pid as an optional parameter if you wanna snoop on some other process πŸ‘€ β€” but if you don't, it's not deep, caprint just shows the capabilities of caprint itself. main character energy, honestly ✨


πŸ’– OPTIONS πŸ’–

caprint accepts the following options, and yes bestie, we're going through all of them 🫢

  • -l, --long β€” run in verbose mode. caprint shows the bitmask for every single capability the process owns, plus the resulting mask of the capability set. it's the full lore dump, no skimming πŸ“–
  • -c, --compact β€” emit a compact output: one single line, a comma separated list of the capability short names. and the slay part? this output can literally be copied as a capability list for the command cado(1) πŸ”₯ copy-paste icon behavior
  • -p, --prompt β€” okay this one is so smart. this option exists to give users a suitable shell prompt that warns them about the extra capabilities granted to that shell (and about the extra danger if they run the wrong commands 😭). for example, you can set the bash prompt by editing the .bashrc in the user's home directory:
if which caprint >&/dev/null ; then
  ambient=$(caprint -p)
fi

PS1='\u@\h:\w:\$$ambient'
  • -h, --help β€” print a short usage banner and dip. that's it, that's the whole thing πŸ’«
⚠️ real talk: those extra capabilities are extra danger. if your shell is holding powers it shouldn't, running the wrong command hits different (derogatory). the -p prompt is there to remind you before things get messy πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘

cado(1), capabilities(7),


and that's the whole page, bestie πŸ’œ brought to you by VirtualSquare Labs, dated June 23, 2016 β€” oldie but a goodie, fr fr. go check your capabilities and stay safe out there πŸŽ€βœ¨πŸ¦‹