#!/bin/bash echo "Programs and capabilities they need" echo "

This file is automatically generated from capbase by capdump. Do not modify, unless you want your changes discarded. Generated at `date` on `uname -a`." echo "

Programs and capabilities they need

" echo "" cat capbase.txt | grep -v '^#' | { while true; do read NAMES || { echo "
ProgramsWhich are good forCaps neededFS rights neededComment

[meta-]Created by Pavel Machek."; exit; } read DESC read CAPS read FSRIGHTS read COMMENT read FLAGS read EMPTY echo "$NAMES$DESC$CAPS$FSRIGHTS$COMMENT" if echo $FLAGS | grep d > /dev/null; then echo " (daemon)" fi if echo $FLAGS | grep s > /dev/null; then echo " (sure!)" fi if echo $FLAGS | grep l > /dev/null; then echo " (maybe less?)" fi if echo $FLAGS | grep 0 > /dev/null; then echo " (does getuid and expects 0)" fi echo "" done }