fd zero byte node left after boot as /dev/.tmp-2-0

Bug #132546 reported by thelinuxguy
8
Affects Status Importance Assigned to Milestone
udev (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: udev

There is a new zero byte hidden node to be found in Ubuntu Gutsy, as /dev/.tmp-2-0, related to the floppy device, which should be been cleaned up after boot. The time stamp is (always) boot-time... It's actually there for some time according to my scan logs of rkhunter, that's how I found out it's there. The command "lsof /dev/.tmp-2-0" is giving me no output...

According to the ubuntu treat at http://ubuntuforums.org/showthread.php?t=518829&page=2 the file should not be there.

Thank you for looking into this...

With kind regards,

Praet Eddy

Revision history for this message
Matti Lindell (mlind) wrote :

I can confirm that I have /dev/.tmp-2-0 file after boot.
Something to do with floppy I guess:
$ udevtest /block/fd0
.
.
main: looking at device '/block/fd0' from subsystem 'block'
udev_rules_get_name: no node name set, will use kernel name 'fd0'
udev_db_get_device: found a symlink as db file
udev_device_event: device '/block/fd0' already in database, cleanup
udev_node_add: creating device node '/dev/fd0', major=2, minor=0, mode=0660, uid=0, gid=25
udev_node_mknod: preserve file '/dev/.tmp-2-0', because it has correct dev_t
udev_node_mknod: chmod(/dev/.tmp-2-0, 060600) failed: Operation not permitted
main: run: 'create_floppy_devices -c -t 4 -m 2 -M 0640 -G disk /dev//dev/.tmp-2-0'
main: run: 'socket:/org/freedesktop/hal/udev_event'
main: run: 'socket:/org/kernel/udev/monitor'

Changed in udev:
status: New → Confirmed
Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Looks like create_floppy_devices is getting called wrong, trivial fix

Changed in udev:
assignee: nobody → keybuk
importance: Undecided → Medium
status: Confirmed → Fix Committed
Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

udev (113-0ubuntu11) gutsy; urgency=low

  * debian/patches/10-git-linux_raid-1.0-metadata.patch:
    - Upstream patch to fix detection of linux_raid metadata v1.0 and
      produce correct UUIDs for such raid devices. LP: #133773

  * 20-names.rules:
    - Place ucm[0-9]* and rdma_ucm into the infiniband dir. LP: #124990.
  * 80-programs.rules:
    - Fix calling of create_floppy_devices to just $tempnode not
      $root/$tempnode, which is just plain wrong. LP: #132546.

 -- Scott James Remnant <email address hidden> Mon, 24 Sep 2007 13:18:41 +0100

Changed in udev:
status: Fix Committed → Fix Released
Revision history for this message
Matti Lindell (mlind) wrote :

This magic file is appearing again on Gutsy, udev 113-0ubuntu15.
if I remove /dev/.tmp-2-0 and restart udev, file appears back again.

Changed in udev:
status: Fix Released → Confirmed
Changed in udev:
assignee: keybuk → nobody
Revision history for this message
Heitzso (heitzso) wrote :

Confirming happening on my ubuntu gutsy server, updated, as of Dec 10 2007.
It would be nice to get this trivial fix implemented in gutsy. Thanks.

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

What trivial fix?
There is no fix on this bug

Revision history for this message
Kay Sievers (kaysievers) wrote :

Oh, the crappy create_floppy_devices uses the argument only as a string to compose
the names for the additional nodes, you should not pass a tempnode at all to that
thing, just use $root/%k.

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Should we use that at all?

I only added it because I saw other people were using it - I'm quite happy to drop it again <g>

Changed in udev:
milestone: ubuntu-7.10-beta → none
Changed in udev:
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package udev - 117-5

---------------
udev (117-5) hardy; urgency=low

  * Merge the "volumeid" package back into "udev", there is no particular
    gain to it being a separate binary package and it prevents the upgrade
    from dapper from migrating the fstab to UUID. LP: #209347.

  * debian/patches/00-git-bad-net-rules.patch:
    - Upstream patch from 118 to avoid creating persistent net rules
      which will match any device.
  * debian/patches/01-git-squashfs-lzma.patch:
    - Upstream patch from 118 to detect LZMA-compressed squashfs.
  * debian/patches/02-git-squashfs-endian.patch:
    - Upstream patch from 118 to detect endianness of LZMA squashfs.
  * debian/patches/03-git-vol_id-timeout-once.patch:
    - Upstream patch from 118 to only timeout once for unreadable devices.
      LP: #156184.
  * debian/patches/04-git-multiple-floppy-devices.patch:
    - Upstream patch from 118 to fix create_floppy_devices for more than
      one floppy device. Possibly LP: #132546.
  * debian/patches/05-git-vol_id-probe_all-readable.patch:
    - Upstream patch from 118 to check whether a device is readable before
      probing. Also LP: #156184.
  * debian/patches/00upstream-RUN-for-remove.patch:
    - Rename to 06-git-run-for-remove.patch so its in series with other
      git patches (this is from 119)
  * debian/patches/07-git-unlock-write_net_rules.patch:
    - Upstream patch from 119 to unlock rules after invalid match, correcting
      a bug introduced by 00-git-bad-net-rules.patch
  * debian/patches/08-git-vol_id-uuid-buffer.patch:
    - Upstream patch from 119 to correct UUID raw buffer usage.
  * debian/patches/09-git-update-ext.patch:
    - Upstream patch from 119 to update ext filesystem detection.
  * debian/patches/10-git-match-basename.patch:
    - Upstream patch from 119 to add match on the basename of an interface
      so we can deal with PS3 multiple interfaces with the same MAC.
  * debian/patches/11-git-persistent-change.patch:
    - Upstream patch from 119 to run persistent device rules on change
      events.
  * debian/patches/12-git-serialise-same-devno.patch:
    - Upstream patch from git to serialise multiple events with the same
      device number, fixes a race with serial ttys amongst other things.

  * 20-names.rules:
    - Add missing quotes for infiniband rules. LP: #192552.
    - Change "rdma_ucm" to "rdma_cm" (same bug).
  * 40-permissions.rules, 40-basic-permissions.rules:
    - Split out the most basic permissions into a separate file that can be
      used in the installer and initramfs. LP: #204108.
    - Add rules to place known USB serial devices that need libusb access
      in the dialout group. LP: #198757.
  * 65-persistent-storage.rules, 65-persistent-storage-tape.rules,
    65-persistent-input.rules, 66-persistent-storage-edd.rules:
    - Use upstream rule names for all rules. Also LP: #186686.
    - Add persistent-storage-edd.rules to installer and initramfs.
  * 80-programs.rules:
    - Pass $root/%k to create-floppy-devices, not $tempnode. LP: #132546.

 -- Scott James Remnant <email address hidden> Wed, 02 Apr 2008 18:59:56 +0100

Changed in udev:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.