#---------------------------------------------------------------
# Project : Mandrake Linux
# Module : msec
# File : msec.csh
# Version : $Id$
# Author : Yoann Vandoorselaere
# Created On : Wed Feb 13 18:35:58 2002
# Purpose : settings according to security level
#---------------------------------------------------------------
if ( -r /etc/sysconfig/msec ) then
eval `sed -n 's/^\([^#]*\)=\([^#]*\)/set \1=\2;/p' < /etc/sysconfig/msec`
endif
if ( "`id -u`" >= 500 ) then
if ( ${?UMASK_USER} ) then
umask ${UMASK_USER}
else
umask 022
endif
else
if ( ${?UMASK_ROOT} ) then
umask ${UMASK_ROOT}
else
umask 002
endif
endif
# (pixel) tcsh doesn't handle directory in the PATH being non-readable
# in security high, /usr/bin is 751, aka non-readable
# using unhash *after modifying PATH* fixes the pb
# So while modifying the PATH, do not rely on the PATH until unhash is done
if ! { (echo "${PATH}" | /bin/grep -q /usr/X11R6/bin) } then
setenv PATH "${PATH}:/usr/X11R6/bin"
endif
if ! { (echo "${PATH}" | /bin/grep -q /usr/games) } then
setenv PATH "${PATH}:/usr/games"
endif
if ( ${?SECURE_LEVEL} && ${SECURE_LEVEL} <= 1 ) then
if ! { (echo "${PATH}" | /bin/fgrep -q :.) } then
setenv PATH "${PATH}:."
endif
endif
# using unhash *after modifying PATH* (see above)
if (! -r /usr/bin) then
unhash
endif
# translate sh variables from /etc/sysconfig/msec to their equivalent in csh
if ( ${?TMOUT} ) then
set autologout=`expr $TMOUT / 60`
endif
if ( ${?HISTFILESIZE} ) then
set history=$HISTFILESIZE
endif
setenv SECURE_LEVEL ${SECURE_LEVEL}
# msec.csh ends here
#*ˎQǓYM>@F0u ܝ@}2 f뼕쉍:`"Z\9@nH˒23p-qP=1ggvAS2`8W-mRYBrG-f5mky)HQmf~+mƔX[lIJ~^@6Bf9Wb13:-tf;a2xWoX
uSۉ8݀i41[Ұ#FӉZ{iǭ2g%s0Hp0c'P uu+d.R[Mun);ѯpH8SC8`9jUFVl}:UP/Z+=5l-ozRw'kU hb l$2:R wO2I<%{˟˕>%C]+Γ~(o̟o0Qj
OONl,iFLgLs
N-1@&Ǜ ^h]zׁ_J\b!cxsH=
v(lc制gqmXޕDʩef7*
u2_E $h|x5igz+M($z=q
nsGdQNc4;r(o!4gaiygNi͔P gTCla6joUFK6>}{}:m$P_",.Y1FOO-mRJ?Vx>w}qؤם / #okE6
I7h9*z @:ƌe 'GaTaӞ%P ba]zYנ(K> yVjM/Dt*76E
_^~|$h>܉ٯdWs9/>b
!k3\6\%
D} q(JWV"yI\.j\;VA{O4?]-ie/@%?٭(-}
nC׳p3lʩGIsDmeK-tBp,kΏhP?VWx(nG~yhMzg#B(_$?3G~H}Xːq`vXwhAlj5~WZ;t: