About this list Date view Thread view Subject view Author view Attachment view

From: Herbert Poetzl (herbert_at_13thfloor.at)
Date: Fri 09 Sep 2005 - 07:50:33 BST


On Fri, Sep 09, 2005 at 11:25:52AM +0530, Subhabrata Bhattacharya wrote:
> > you mean inside a guest, right?
> Not only inside the guest but also in the root. This doesn't surprise
> me as the root context is not very different from the guest context as
> per as the implementation is concerned. Please let me know if my
> understanding is correct.
>
> Also I cannot create any other /proc entries if I write corresponding
> code in the {KERNEL_SRC}/fs/proc/proc_misc.c Is this also a case with
> security?

ahem, interresting ... please provide the
output of the testme.sh script for further
investigations ...

http://vserver.13thfloor.at/Stuff/SCRIPT/testme.sh

> This is the output of my /proc in the root context.I have omitted the
> process directories.

here a subset of mine (2.6.12.4-vs2.0)

ls -lda /proc/s*
dr-xr-xr-x 4 root root 0 2005-09-09 09:25 /proc/scsi
lrwxrwxrwx 1 root root 64 2005-09-09 04:25 /proc/self -> 14765
-rw-r--r-- 1 root root 0 2005-09-09 09:25 /proc/slabinfo
-r--r--r-- 1 root root 0 2005-09-09 09:25 /proc/stat
-r--r--r-- 1 root root 0 2005-09-09 09:25 /proc/swaps
dr-xr-xr-x 12 root root 0 2005-09-09 09:25 /proc/sys
--w------- 1 root root 0 2005-09-09 09:25 /proc/sysrq-trigger

best,
Herbert

> dr-xr-xr-x 10 root root 0 Sep 9 11:20 acpi
> dr-xr-xr-x 5 root root 0 Sep 9 11:20 asound
> -r--r--r-- 1 root root 0 Sep 9 11:20 buddyinfo
> dr-xr-xr-x 5 root root 0 Sep 9 11:20 bus
> -r--r--r-- 1 root root 0 Sep 9 11:20 cmdline
> -r--r--r-- 1 root root 0 Sep 9 11:20 cpuinfo
> -r--r--r-- 1 root root 0 Sep 9 11:20 crypto
> -r--r--r-- 1 root root 0 Sep 9 11:20 devices
> -r--r--r-- 1 root root 0 Sep 9 11:20 diskstats
> -r--r--r-- 1 root root 0 Sep 9 11:20 dma
> dr-xr-xr-x 2 root root 0 Sep 9 11:20 dri
> dr-xr-xr-x 2 root root 0 Sep 9 11:20 driver
> -r--r--r-- 1 root root 0 Sep 9 11:20 execdomains
> -r--r--r-- 1 root root 0 Sep 9 11:20 filesystems
> dr-xr-xr-x 4 root root 0 Sep 9 11:20 fs
> dr-xr-xr-x 4 root root 0 Sep 9 11:20 ide
> -r--r--r-- 1 root root 0 Sep 9 11:20 interrupts
> -r--r--r-- 1 root root 0 Sep 9 11:20 iomem
> -r--r--r-- 1 root root 0 Sep 9 11:20 ioports
> dr-xr-xr-x 23 root root 0 Sep 9 11:20 irq
> -r--r--r-- 1 root root 0 Sep 9 11:20 kallsyms
> -r-------- 1 root root 528420864 Sep 9 11:20 kcore
> -r-------- 1 root root 0 Sep 8 21:40 kmsg
> -r--r--r-- 1 root root 0 Sep 9 11:20 loadavg
> -r--r--r-- 1 root root 0 Sep 9 11:20 locks
> -r--r--r-- 1 root root 0 Sep 9 11:20 mdstat
> -r--r--r-- 1 root root 0 Sep 9 11:20 meminfo
> -r--r--r-- 1 root root 0 Sep 9 11:20 misc
> -r--r--r-- 1 root root 0 Sep 9 11:20 modules
> lrwxrwxrwx 1 root root 11 Sep 9 11:20 mounts -> self/mounts
> -rw-r--r-- 1 root root 0 Sep 8 21:41 mtrr
> dr-xr-xr-x 4 root root 0 Sep 9 11:20 net
> -r--r--r-- 1 root root 0 Sep 9 11:20 partitions
> -r--r--r-- 1 root root 0 Sep 9 11:20 pci
> dr-xr-xr-x 3 root root 0 Sep 9 11:20 scsi
> lrwxrwxrwx 1 root root 64 Sep 9 04:09 self -> 4016
> -rw-r--r-- 1 root root 0 Sep 9 11:20 slabinfo
> -r--r--r-- 1 root root 0 Sep 9 11:20 stat
> -r--r--r-- 1 root root 0 Sep 9 11:20 swaps
> dr-xr-xr-x 11 root root 0 Sep 9 11:20 sys
> dr-xr-xr-x 2 root root 0 Sep 9 11:20 sysvipc
> dr-xr-xr-x 4 root root 0 Sep 9 11:20 tty
> -r--r--r-- 1 root root 0 Sep 9 11:20 uptime
> -r--r--r-- 1 root root 0 Sep 9 11:20 version
> dr-xr-xr-x 2 root root 0 Sep 9 11:20 virtnet
> dr-xr-xr-x 2 root root 0 Sep 9 11:20 virtual
> -r--r--r-- 1 root root 0 Sep 9 11:20 vmstat
>
> ~$ubh
> _______________________________________________
> Vserver mailing list
> Vserver_at_list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver
_______________________________________________
Vserver mailing list
Vserver_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 09 Sep 2005 - 07:50:58 BST by hypermail 2.1.3