#731780 lsof: mount namespace support

Package:
lsof
Source:
lsof
Description:
utility to list open files
Submitter:
Shawn Landden
Date:
2013-12-12 19:48:05 UTC
Severity:
wishlist
#731780#5
Date:
2013-12-09 18:48:06 UTC
From:
To:
lsof does not support mount namespaces of Linux.
Instead you just get alof of (stat: No such file or directory)
outputs.

Fixing this requires reworking the source to use openat() to
still have access to /proc when in a differn't namespace.

Only works as root (CAP_SYS_ADMIN).

Patch attached.

Cheers,

Shawn

#731780#10
Date:
2013-12-11 20:30:56 UTC
From:
To:
Shawn,

Thank you for the patch.

I just got back from an extended trip, so I
won't be able to look at this for a while.

Vic

#731780#15
Date:
2013-12-12 19:45:17 UTC
From:
To:
last version of this patch made use of an unitilized variable (NoNS)