kern/139014: devfs: /dev/null must be immunable to delete/unlink

Dima Panov fluffy at FreeBSD.org
Mon Sep 21 14:00:05 UTC 2009


>Number:         139014
>Category:       kern
>Synopsis:       devfs: /dev/null must be immunable to delete/unlink
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 21 14:00:04 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Dima Panov
>Release:        FreeBSD 9.0-900001-CURRENT amd64
>Organization:
Fluffy.Khv.RU 
>Environment:


System: FreeBSD 9.0-900001-CURRENT #0: Thu Sep 10 16:58:16 VLAST 2009
    fluffy at Fluffy.Khv.RU:/usr/obj/usr/src/sys/Spot



>Description:


/dev/null affected by unlink process, which is not good and leads to hiding null from devfs tree.

It must be immunable to unlinking




>How-To-Repeat:


please run this small script (part of one configure script)

------------------
#!/bis/sh
cat >conftest.cpp <<EOF
int main() { return 0; }
EOF
gcc -o /dev/null conftest.cpp
------------------

after gcc ends   node /dev/null will be absent and not autorecovered to available state.


>Fix:


unknown :(


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list