Re: [Vserver] No /dev/stdin on vserver? (How) can I create new devices?

From: Daniel Hokka Zakrisson <daniel_at_hozac.com>
Date: Sat 01 Jul 2006 - 13:06:36 BST
Message-ID: <44A6654C.1040407@hozac.com>

Robert Michel wrote:
> Salve,
>
> I use two vserver from different ISPs, but both
> do not have a /dev/stdin. Is there a way I can
> create it myself?

As this is just a symlink to /proc/self/fd/0, sure.

> And BTW, when I try
> cp -avp /dev/tty /dev/tty7
> I got a feedback that the creating of the special file
> /dev/tty7 would not be possible - this operation is
> not allowed
> "cp: Erzeugen der Spezialdatei »/dev/tty7« nicht möglich: Die Operation
> ist nicht erlaubt"
> On my non-v-server I can do this.
>
> Could it by that I'm allowed to remove devices, but
> not allowed to create one?

Exactly. Giving guests the ability to create devices is a huge security
risk, basically equivalent to just giving access to the host directly.

-- 
Daniel Hokka Zakrisson
GPG id: 06723412
GPG fingerprint: A455 4DF3 990A 431F FECA  7947 6136 DDA2 0672 3412
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Sat Jul 1 13:06:08 2006
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Sat 01 Jul 2006 - 13:06:12 BST by hypermail 2.1.8