Commit 46f6e946 by Eric Coissac

Adds possibility to activate or desactivate secure icommands and add log

about the status.
parent 11e4ac09
Pipeline #11 skipped
......@@ -35,6 +35,7 @@ fi
#
if type secure_iget 1> /dev/null; then
LECABASHLIB_IGET="secure_iget"
loginfo "Activating secure icommand for iget"
else
LECABASHLIB_IGET="iget"
fi
......@@ -45,6 +46,7 @@ fi
if type secure_iput 1> /dev/null; then
LECABASHLIB_IPUT="secure_iput"
loginfo "Activating secure icommand for iput"
else
LECABASHLIB_IPUT="iput"
fi
......@@ -65,6 +67,26 @@ else
fi
#
# isetsecure
#
function isetsecure() {
LECABASHLIB_IGET=$( echo $LECABASHLIB_IGET | sed "s/^iget/secure_iget/" )
LECABASHLIB_IPUT=$( echo $LECABASHLIB_IPUT | sed "s/^iput/secure_iput/" )
loginfo "Activating secure icommand"
}
#
# isetsecure
#
function iunsetsecure() {
LECABASHLIB_IGET=$( echo $LECABASHLIB_IGET | sed "s/^secure_iget/iget/" )
LECABASHLIB_IPUT=$( echo $LECABASHLIB_IPUT | sed "s/^secure_iput/iput/" )
loginfo "Desactivating secure icommand"
}
#
# isetresource :
#
function isetresource() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment