Handle different levels of rdcd privilege

Depending on how a user starts rdcd, rdcd will either have
full monitor/control capabilities or have just monitoring
capabilties.

The only 2 user ids allowed are "rdc" and root.

Change-Id: Ie296a2f68c9723bef5945b1af1070ef99eeea93b


[ROCm/rdc commit: a6acf24ae7]
This commit is contained in:
Chris Freehill
2020-03-20 10:32:25 -05:00
parent ce4890f88c
commit a7fb94589c
5 changed files with 235 additions and 41 deletions
@@ -11,5 +11,7 @@ if [ $# -lt 1 ]; then
fi
INSTALL_DIR=$1
mkdir -p $INSTALL_DIR
cp -R client $INSTALL_DIR
chown -R rdc:rdc $INSTALL_DIR/client
@@ -11,8 +11,11 @@ if [ $# -lt 1 ]; then
fi
INSTALL_DIR=$1
mkdir -p $INSTALL_DIR
cp -R server $INSTALL_DIR
mkdir -p $INSTALL_DIR/client/certs
cp client/certs/rdc_cacert.pem $INSTALL_DIR/client/certs
chmod 700 $INSTALL_DIR/server/private
chown -R rdc:rdc $INSTALL_DIR/server
chown -R rdc:rdc $INSTALL_DIR/client