I'm trying to mount a devfs inside a chroot jail, so that
scponlyc with work with sftp.

This problem seems to match kern/93423, but I have another 
6.2-STABLE system which has no problem with the below.

How can I get /sbin/devfs to cooperate?

Thank you!

Jim


sys : 23:07:12 /root# mount_devfs devfs ~foo/dev
sys : 23:07:21 /root# ls -l ~foo/dev
total 1
crw-r-----  1 root  operator    0,  73 Apr 24 22:21 acd0
crw-------  1 root  operator    0,  26 Apr 24 22:21 ata
crw-------  1 root  wheel       0,  33 Apr 24 22:21 atkbd0
crw-------  1 root  wheel       0,  25 Apr 24 22:42 console
crw-------  1 root  wheel       0,  51 Apr 24 22:21 consolectl
crw-rw-rw-  1 root  wheel       0,   6 Apr 24 22:21 ctty
crw-rw----  1 uucp  dialer      0,  55 Apr 24 22:21 cuad0
crw-rw----  1 uucp  dialer      0,  56 Apr 24 22:21 cuad0.init
crw-rw----  1 uucp  dialer      0,  57 Apr 24 22:21 cuad0.lock
crw-------  1 root  wheel       0,   5 Apr 24 22:21 devctl
cr--------  1 root  wheel       0,  28 Apr 24 22:21 devstat
dr-xr-xr-x  2 root  wheel          512 Apr 24 23:07 fd/
crw-r-----  1 root  operator    0,  64 Apr 24 22:21 fd0
crw-------  1 root  wheel       0,  21 Apr 24 22:21 fido
crw-r-----  1 root  operator    0,   4 Apr 24 22:21 geom.ctl
crw-------  1 root  operator    0,  27 Apr 24 22:21 ida0
crw-r-----  1 root  operator    0,  63 Apr 24 22:21 idad0
crw-r-----  1 root  operator    0,  65 Apr 24 22:21 idad0s1
crw-r-----  1 root  operator    0,  67 Apr 24 15:21 idad0s1a
crw-r-----  1 root  operator    0,  68 Apr 24 22:21 idad0s1b
crw-r-----  1 root  operator    0,  69 Apr 24 22:21 idad0s1c
crw-r-----  1 root  operator    0,  70 Apr 24 15:21 idad0s1d
crw-r-----  1 root  operator    0,  71 Apr 24 15:21 idad0s1e
crw-r-----  1 root  operator    0,  72 Apr 24 15:21 idad0s1f
crw-r-----  1 root  operator    0,  66 Apr 24 22:21 idad0s3
crw-------  1 root  wheel       0,  16 Apr 24 22:21 io
lrwxr-xr-x  1 root  wheel            6 Apr 24 23:07 kbd0@ -> atkbd0
crw-------  1 root  wheel       0,  20 Apr 24 22:21 klog
crw-r-----  1 root  kmem        0,  23 Apr 24 22:21 kmem
crw-------  1 root  wheel       0,  62 Apr 24 22:21 mdctl
crw-r-----  1 root  kmem        0,  22 Apr 24 22:21 mem
dr-xr-xr-x  2 root  wheel          512 Apr 24 23:07 net/
lrwxr-xr-x  1 root  wheel            8 Apr 24 23:07 net1@ -> net/fxp0
lrwxr-xr-x  1 root  wheel            8 Apr 24 23:07 net2@ -> net/fxp1
lrwxr-xr-x  1 root  wheel            7 Apr 24 23:07 net3@ -> net/lo0
crw-------  1 root  wheel       0,   3 Apr 24 22:21 network
crw-------  1 root  wheel       0,  58 Apr 24 22:21 nfs4
crw-------  1 root  kmem        0,  24 Apr 24 22:21 nfslock
crw-rw-rw-  1 root  wheel       0,   7 Apr 24 23:00 null
crw-r--r--  1 root  wheel       0,   9 Apr 24 22:21 pci
crw-rw-rw-  1 root  wheel       0,  77 Apr 24 23:07 ptyp0
crw-rw-rw-  1 root  wheel       0,  79 Apr 24 23:07 ptyp1
crw-rw-rw-  1 root  wheel       0,  18 Apr 24 15:21 random
lrwxr-xr-x  1 root  wheel            4 Apr 24 23:07 stderr@ -> fd/2
lrwxr-xr-x  1 root  wheel            4 Apr 24 23:07 stdin@ -> fd/0
lrwxr-xr-x  1 root  wheel            4 Apr 24 23:07 stdout@ -> fd/1
crw-------  1 root  wheel       0,  17 Apr 24 22:21 sysmouse
crw-------  1 root  wheel       0,  52 Apr 24 22:21 ttyd0
crw-------  1 root  wheel       0,  53 Apr 24 22:21 ttyd0.init
crw-------  1 root  wheel       0,  54 Apr 24 22:21 ttyd0.lock
crw-rw-rw-  1 root  wheel       0,  78 Apr 24 23:07 ttyp0
crw-rw-rw-  1 root  wheel       0,  80 Apr 24 23:07 ttyp1
crw-------  1 root  wheel       0,  35 Apr 24 22:22 ttyv0
crw-------  1 root  wheel       0,  36 Apr 24 22:22 ttyv1
crw-------  1 root  wheel       0,  37 Apr 24 22:22 ttyv2
crw-------  1 root  wheel       0,  38 Apr 24 22:22 ttyv3
crw-------  1 root  wheel       0,  39 Apr 24 22:22 ttyv4
crw-------  1 root  wheel       0,  40 Apr 24 22:22 ttyv5
crw-------  1 root  wheel       0,  41 Apr 24 22:22 ttyv6
crw-------  1 root  wheel       0,  42 Apr 24 22:22 ttyv7
crw-------  1 root  wheel       0,  43 Apr 24 22:21 ttyv8
crw-------  1 root  wheel       0,  44 Apr 24 22:21 ttyv9
crw-------  1 root  wheel       0,  45 Apr 24 22:21 ttyva
crw-------  1 root  wheel       0,  46 Apr 24 22:21 ttyvb
crw-------  1 root  wheel       0,  47 Apr 24 22:21 ttyvc
crw-------  1 root  wheel       0,  48 Apr 24 22:21 ttyvd
crw-------  1 root  wheel       0,  49 Apr 24 22:21 ttyve
crw-------  1 root  wheel       0,  50 Apr 24 22:21 ttyvf
lrwxr-xr-x  1 root  wheel            6 Apr 24 23:07 urandom@ -> random
crw-------  1 root  operator    0,  61 Apr 24 22:21 xpt0
crw-rw-rw-  1 root  wheel       0,   8 Apr 24 22:21 zero
sys : 23:07:27 /root# /sbin/devfs -m ~foo/dev rule -s 1 applyset
devfs rule: ioctl DEVFSIO_SAPPLY: No such process
sys : 23:08:04 /root# ls -l ~foo/dev
total 1
crw-r-----  1 root  operator    0,  73 Apr 24 22:21 acd0
crw-------  1 root  operator    0,  26 Apr 24 22:21 ata
crw-------  1 root  wheel       0,  33 Apr 24 22:21 atkbd0
crw-------  1 root  wheel       0,  25 Apr 24 22:42 console
crw-------  1 root  wheel       0,  51 Apr 24 22:21 consolectl
crw-rw-rw-  1 root  wheel       0,   6 Apr 24 22:21 ctty
crw-rw----  1 uucp  dialer      0,  55 Apr 24 22:21 cuad0
crw-rw----  1 uucp  dialer      0,  56 Apr 24 22:21 cuad0.init
crw-rw----  1 uucp  dialer      0,  57 Apr 24 22:21 cuad0.lock
crw-------  1 root  wheel       0,   5 Apr 24 22:21 devctl
cr--------  1 root  wheel       0,  28 Apr 24 22:21 devstat
dr-xr-xr-x  2 root  wheel          512 Apr 24 23:07 fd/
crw-r-----  1 root  operator    0,  64 Apr 24 22:21 fd0
crw-------  1 root  wheel       0,  21 Apr 24 22:21 fido
crw-r-----  1 root  operator    0,   4 Apr 24 22:21 geom.ctl
crw-------  1 root  operator    0,  27 Apr 24 22:21 ida0
crw-r-----  1 root  operator    0,  63 Apr 24 22:21 idad0
crw-r-----  1 root  operator    0,  65 Apr 24 22:21 idad0s1
crw-r-----  1 root  operator    0,  67 Apr 24 15:21 idad0s1a
crw-r-----  1 root  operator    0,  68 Apr 24 22:21 idad0s1b
crw-r-----  1 root  operator    0,  69 Apr 24 22:21 idad0s1c
crw-r-----  1 root  operator    0,  70 Apr 24 15:21 idad0s1d
crw-r-----  1 root  operator    0,  71 Apr 24 15:21 idad0s1e
crw-r-----  1 root  operator    0,  72 Apr 24 15:21 idad0s1f
crw-r-----  1 root  operator    0,  66 Apr 24 22:21 idad0s3
crw-------  1 root  wheel       0,  16 Apr 24 22:21 io
lrwxr-xr-x  1 root  wheel            6 Apr 24 23:07 kbd0@ -> atkbd0
crw-------  1 root  wheel       0,  20 Apr 24 22:21 klog
crw-r-----  1 root  kmem        0,  23 Apr 24 22:21 kmem
crw-------  1 root  wheel       0,  62 Apr 24 22:21 mdctl
crw-r-----  1 root  kmem        0,  22 Apr 24 22:21 mem
dr-xr-xr-x  2 root  wheel          512 Apr 24 23:07 net/
lrwxr-xr-x  1 root  wheel            8 Apr 24 23:07 net1@ -> net/fxp0
lrwxr-xr-x  1 root  wheel            8 Apr 24 23:07 net2@ -> net/fxp1
lrwxr-xr-x  1 root  wheel            7 Apr 24 23:07 net3@ -> net/lo0
crw-------  1 root  wheel       0,   3 Apr 24 22:21 network
crw-------  1 root  wheel       0,  58 Apr 24 22:21 nfs4
crw-------  1 root  kmem        0,  24 Apr 24 22:21 nfslock
crw-rw-rw-  1 root  wheel       0,   7 Apr 24 23:00 null
crw-r--r--  1 root  wheel       0,   9 Apr 24 22:21 pci
crw-rw-rw-  1 root  wheel       0,  77 Apr 24 23:08 ptyp0
crw-rw-rw-  1 root  wheel       0,  79 Apr 24 23:08 ptyp1
crw-rw-rw-  1 root  wheel       0,  18 Apr 24 15:21 random
lrwxr-xr-x  1 root  wheel            4 Apr 24 23:07 stderr@ -> fd/2
lrwxr-xr-x  1 root  wheel            4 Apr 24 23:07 stdin@ -> fd/0
lrwxr-xr-x  1 root  wheel            4 Apr 24 23:07 stdout@ -> fd/1
crw-------  1 root  wheel       0,  17 Apr 24 22:21 sysmouse
crw-------  1 root  wheel       0,  52 Apr 24 22:21 ttyd0
crw-------  1 root  wheel       0,  53 Apr 24 22:21 ttyd0.init
crw-------  1 root  wheel       0,  54 Apr 24 22:21 ttyd0.lock
crw-rw-rw-  1 root  wheel       0,  78 Apr 24 23:08 ttyp0
crw-rw-rw-  1 root  wheel       0,  80 Apr 24 23:08 ttyp1
crw-------  1 root  wheel       0,  35 Apr 24 22:22 ttyv0
crw-------  1 root  wheel       0,  36 Apr 24 22:22 ttyv1
crw-------  1 root  wheel       0,  37 Apr 24 22:22 ttyv2
crw-------  1 root  wheel       0,  38 Apr 24 22:22 ttyv3
crw-------  1 root  wheel       0,  39 Apr 24 22:22 ttyv4
crw-------  1 root  wheel       0,  40 Apr 24 22:22 ttyv5
crw-------  1 root  wheel       0,  41 Apr 24 22:22 ttyv6
crw-------  1 root  wheel       0,  42 Apr 24 22:22 ttyv7
crw-------  1 root  wheel       0,  43 Apr 24 22:21 ttyv8
crw-------  1 root  wheel       0,  44 Apr 24 22:21 ttyv9
crw-------  1 root  wheel       0,  45 Apr 24 22:21 ttyva
crw-------  1 root  wheel       0,  46 Apr 24 22:21 ttyvb
crw-------  1 root  wheel       0,  47 Apr 24 22:21 ttyvc
crw-------  1 root  wheel       0,  48 Apr 24 22:21 ttyvd
crw-------  1 root  wheel       0,  49 Apr 24 22:21 ttyve
crw-------  1 root  wheel       0,  50 Apr 24 22:21 ttyvf
lrwxr-xr-x  1 root  wheel            6 Apr 24 23:07 urandom@ -> random
crw-------  1 root  operator    0,  61 Apr 24 22:21 xpt0
crw-rw-rw-  1 root  wheel       0,   8 Apr 24 22:21 zero

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to