aboutsummaryrefslogtreecommitdiffstats
path: root/msec.csh
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-01-06 22:30:52 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-01-06 22:30:52 +0000
commitb57cda9734af353d56ddb926f6f1068450d52f58 (patch)
tree14881ae30d050ad189afe303fd11f7c2be5c35bf /msec.csh
parent01e2ce8b8f872117fcb62e6483f9eca7d5bfb669 (diff)
downloadmsec-b57cda9734af353d56ddb926f6f1068450d52f58.tar
msec-b57cda9734af353d56ddb926f6f1068450d52f58.tar.gz
msec-b57cda9734af353d56ddb926f6f1068450d52f58.tar.bz2
msec-b57cda9734af353d56ddb926f6f1068450d52f58.tar.xz
msec-b57cda9734af353d56ddb926f6f1068450d52f58.zip
Added updated profile.d files.
Diffstat (limited to 'msec.csh')
-rwxr-xr-xmsec.csh66
1 files changed, 0 insertions, 66 deletions
diff --git a/msec.csh b/msec.csh
deleted file mode 100755
index 362f51d..0000000
--- a/msec.csh
+++ /dev/null
@@ -1,66 +0,0 @@
-#---------------------------------------------------------------
-# Project : Mandriva 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 ( $uid >= 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/games) } then
- setenv PATH "${PATH}:/usr/games"
-endif
-
-if ( ${?SECURE_LEVEL} ) then
- if ( ${SECURE_LEVEL} <= 1 ) then
- if ! { (echo "${PATH}" | /bin/fgrep -q :.) } then
- setenv PATH "${PATH}:."
- endif
- 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
-
-if ( ${?SECURE_LEVEL} ) then
- setenv SECURE_LEVEL ${SECURE_LEVEL}
-endif
-
-# msec.csh ends here