#!/bin/sh
#
# This is a shell script to be run after the installation of SICL C.03.01g
# on a 700 system which will remove the write permission mode from all
# shared-library files shipped with this product.  This change fixes a
# performance problem whereby subsequent accesses to a shared library
# file which has write mode set are up to 5 times slower than the first
# time the file was accessed due to security overhead.

if [ `id -u` = 0 ]
then
  chmod 555 /usr/lib/libsicl.sl
  chmod 555 /usr/pil/lib/pk_p.sl
  chmod 555 /usr/pil/lib/e2070a.sl
  chmod 555 /usr/pil/lib/e2071.sl
  chmod 555 /usr/pil/lib/s745.sl
  chmod 555 /usr/pil/lib/serial700.sl
  chmod 555 /usr/pil/lib/e1489.sl
  chmod 555 /usr/pil/lib/ilan.sl
else
  echo "ERROR: You must have \"super-user\" privilege to execute this script."
fi
