NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/48852: CD9660 RockRidge: device files not properly handled

>Number:         48852
>Category:       kern
>Synopsis:       Either the cd9660 file system or makefs mishandle device nodes
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 30 07:15:00 +0000 2014
>Originator:     Martin Husemann
>Release:        NetBSD 6.99.43
The NetBSD Foundation, Inc.
System: NetBSD 6.99.43 NetBSD 6.99.43 (NIGHT-OWL) #256: 
Mon May 26 09:45:23 CEST 2014
Architecture: x86_64
Machine: amd64

As far as I understand, the CD9660 file system with rockridge
extensions should be able to represent device nodes.

When testing, I found it only partly works: node type (c or b) is
properly preserved, but major/minor all get set to 0. This leads
to funny effects, as /dev/null is now the same as /dev/console (just
to mention one of the less critical ones).


(as root, for MAKEDEV to work) do:

mkdir cdrom
mkdir cdrom/dev
cp /dev/MAKEDEV cdrom/dev
( cd cdrom/dev && sh ./MAKEDEV all )
makefs -t cd9660 -o rockridge test.iso cdrom
rump_cd9660 ./test.iso /mnt
ls -l /mnt/dev/console /mnt/dev/null


Home | Main Index | Thread Index | Old Index