direct-io.hg

changeset 820:f8c20f68e4d5

bitkeeper revision 1.505 (3f88123avJcxOfXCNp2EJ21JBegFRg)

xen-mkdevnodes:
Create the xvd device nodes with permissions 600 to be totally sure we don't give users direct-access privilege.
author kaf24@scramble.cl.cam.ac.uk
date Sat Oct 11 14:22:50 2003 +0000 (2003-10-11)
parents 3c65c1356225
children f0194709226e
files tools/misc/xen-mkdevnodes
line diff
     1.1 --- a/tools/misc/xen-mkdevnodes	Sat Oct 11 08:14:03 2003 +0000
     1.2 +++ b/tools/misc/xen-mkdevnodes	Sat Oct 11 14:22:50 2003 +0000
     1.3 @@ -12,8 +12,10 @@ PARTITIONS="1 2 3 4 5 6 7 8 9 10 11 12 1
     1.4  j=0
     1.5  for l in ${LETTERS}; do
     1.6      mknod ${BASE}/xvd${l} b 125 ${j}
     1.7 +    chmod 600 ${BASE}/xvd${l}
     1.8      for i in ${PARTITIONS}; do
     1.9          mknod ${BASE}/xvd${l}${i} b 125 $(($i+$j))
    1.10 +        chmod 600 ${BASE}/xvd${l}${i}
    1.11      done
    1.12      j=$(($j+16))
    1.13  done