[Sheepdog] [PATCH 2/4] cluster: add local cluster driver
MORITA Kazutaka
morita.kazutaka at lab.ntt.co.jp
Sat Oct 29 17:21:36 CEST 2011
At Sat, 29 Oct 2011 11:10:29 +0100,
Chris Webb wrote:
>
> MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp> writes:
>
> > +const char *shmfile = "/tmp/sheepdog_shm";
> [...]
> > + shmfd = open(shmfile, O_CREAT | O_RDWR, 0644);
>
> Even though this is just a testing driver, this does make me a little bit
> nervous. For instance, as a malicious user of your machine, I might have
> done
>
> ln -s /etc/shadow /tmp/sheepdog_shm
>
> before you started sheepdog.
How about specifying a shared file name in the command line argument?
For example:
$ sheep /store -c local:/share/file/name
Thanks,
Kazutaka
More information about the sheepdog
mailing list