Subversion Repositories wimsdev

Rev

Rev 2497 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
23 reyssat 1
 
2
noread=bin sessions s2 src log log/classes log/forums log/.developers\
3
 backup tmp/log\
4
 public_html/bin public_html/msg\
5
 public_html/bases/dic public_html/bases/sheet\
6
 public_html/bases/site public_html/bases/sys\
7
 public_html/bases/doc\
8
 public_html/scripts/adm\
9
 public_html/modules/home public_html/modules/adm
10
nowrite=public_html README README_rpm HEADER.html download other\
11
 compile localwims chroot/bin chroot/usr chroot/etc chroot/sbin chroot/lib
12
nowrite2=tmp tmp/sessions chroot chroot/tmp/sessions
13
noexec=public_html/modules
14
users=bin public_html chroot/*
15
wexec=other other/lib other/share tmp tmp/forall tmp/sessions -maxdepth 0
16
wexec2=other/bin
17
 
18
bad=!mexec scripts/attrib.sh $noread
19
writable=!mexec scripts/attrib2.sh $nowrite
20
writcnt=!wordcnt $writable
21
execable=!mexec scripts/attrib3.sh $noexec
22
execnt=!wordcnt $execable
23
baduser=!mexec scripts/attrib4.sh $users
24
noexec=!mexec scripts/attrib5.sh $wexec
3882 bpr 25
bad_wrapexec=!record 0 of wimshome/log/unsecure
26
!if public_html/bin/ch..root notwordof $baduser 
27
  bad_chroot=true
23 reyssat 28
!endif
3882 bpr 29
!if bin/wimsd notwordof $baduser
30
  bad_wimsd=true
31
!endif
23 reyssat 32
baduser=!replace word public_html/bin/ch..root by $ in $baduser
33
baduser=!replace word public_html/bin/wrap..exec by $ in $baduser
34
baduser=!replace word bin/wimsd by $ in $baduser
35
usercnt=!wordcnt $baduser
36