]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsfd: fill ENDPOINTS column of unix socket using UNIX_DIAG_PEER information
authorMasatake YAMATO <yamato@redhat.com>
Thu, 3 Aug 2023 16:10:58 +0000 (01:10 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Mon, 2 Oct 2023 15:14:18 +0000 (00:14 +0900)
commitf9771d8d71b1b98f6c30b5c631a2301f0315f440
treefea3b204d151fd1fb8d748de2e7fdcae396b8398
parent046c5d5a2f4b0b8344cf0cad7e05a68a1e313710
lsfd: fill ENDPOINTS column of unix socket using UNIX_DIAG_PEER information

An example output:

   # ./lsfd -Q '((PID == 1) || (PID == 1896)) && (TYPE == "UNIX-STREAM") && ((FD == 1) || (FD == 278))' -o+ENDPOINTS
   COMMAND        PID USER ASSOC  XMODE        TYPE SOURCE MNTID INODE NAME                                             ENDPOINTS
   systemd          1 root   278 rw---m UNIX-STREAM sockfs     9 37012 state=connected path=/run/systemd/journal/stdout 1896,ModemManager,1
   ModemManager  1896 root     1 rw---- UNIX-STREAM sockfs     9 43126 state=connected                                  1,systemd,278
                                                                                                                        1870458,systemd-journal,68

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
misc-utils/lsfd-sock-xinfo.c