Project

General

Profile

Feature #12261

pfiles(1) could show any filesystem endpoints for a door

Added by Andy Fiddaman 2 months ago. Updated 26 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:

Description

Lots of processes bind door servers to filesystem paths but pfiles does not show this information.

# pfiles `pgrep picld`
362:    /usr/lib/picl/picld
  Current rlimit: 65536 file descriptors
   0: S_IFCHR mode:0666 dev:537,0 ino:31981576 uid:0 gid:3 rdev:61,2
      O_RDWR
      /devices/pseudo/mm@0:null
      offset:0
   1: S_IFCHR mode:0666 dev:537,0 ino:31981576 uid:0 gid:3 rdev:61,2
      O_RDWR
      /devices/pseudo/mm@0:null
      offset:0
   2: S_IFCHR mode:0666 dev:537,0 ino:31981576 uid:0 gid:3 rdev:61,2
      O_RDWR
      /devices/pseudo/mm@0:null
      offset:0
   3: S_IFDOOR mode:0777 dev:540,0 ino:0 uid:0 gid:0 rdev:540,0
      O_RDWR FD_CLOEXEC  door to picld[362]
   4: S_IFDOOR mode:0777 dev:540,0 ino:0 uid:0 gid:0 rdev:540,0
      O_RDWR FD_CLOEXEC  door to picld[362]

The paths can be seen in the list of mounted filesystems:

# mdb -ke ::fsinfo | grep picl
fffffeb1defe4de0 namefs          /etc/sysevent/piclevent_door
fffffeb1defe4aa0 namefs          /var/run/picld_door

History

#1

Updated by Andy Fiddaman 2 months ago

  • Description updated (diff)
#2

Updated by Andy Fiddaman 2 months ago

  • Subject changed from pfiles(1) could show any filesystem endpoints for a door. to pfiles(1) could show any filesystem endpoints for a door
#3

Updated by Andy Fiddaman about 1 month ago

To test this I ran a comparison of the before and after pfiles output on a test system with various running zones. The only observed differences were that filesystem attachment points are now shown for doors, and the path is properly displayed for processes within a non-global zone depending on the zone from which it is being queried.

#4

Updated by Electric Monk 26 days ago

  • Status changed from In Progress to Closed
  • % Done changed from 0 to 100

git commit 8950e535f42dd006f8cfb2122c94f6b7557757e0

commit  8950e535f42dd006f8cfb2122c94f6b7557757e0
Author: Andy Fiddaman <omnios@citrus-it.co.uk>
Date:   2020-03-04T11:20:50.000Z

    12261 pfiles(1) could show any filesystem endpoints for a door
    Reviewed by: John Levon <john.levon@joyent.com>
    Reviewed by: Jason King <jason.king@joyent.com>
    Approved by: Robert Mustacchi <rm@fingolfin.org>

Also available in: Atom PDF