Project

General

Profile

Actions

Feature #4067

closed

The first step local app verification

Added by Zhiyi Zhang almost 7 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Start date:
04/27/2017
Due date:
% Done:

0%

Estimated time:

Description

Given the fd and also the PID of nfd: here fd = 10 and pid = 5402.

In MACOS
First Step: sudo lsof -U -p 5402 -a

   nfd     5402 root   10u    unix 0xcb0fd89f2f36d5d5       0t0          /private/var/run/nfd.sock
   nfd     5402 root   24u    unix 0xcb0fd89f14a584a5       0t0          /private/var/run/nfd.sock
   nfd     5402 root   29u    unix 0xcb0fd89f14a583dd       0t0          ->0xcb0fd89f14a5aa25
   nfd     5402 root   30u    unix 0xcb0fd89f14a5aa25       0t0          /private/var/run/nfd.sock

Now we get:

   nfd     5402 root   10u    unix 0xcb0fd89f2f36d5d5       0t0          /private/var/run/nfd.sock

Second Step: sudo lsof | grep 0xcb0fd89f2f36d5d5

   nfd        5402             root   10u     unix 0xcb0fd89f2f36d5d5        0t0          /private/var/run/nfd.sock
   ndncert-c 28670       ZhangZhiyi    9u     unix 0xcb0fd89f2f36eed5        0t0          ->0xcb0fd89f2f36d5d5

Now we have the pid of the other end of unix domain socket

   28670

Third Step: ps -p 28670

   PID     TTY           TIME CMD
   28670 ttys003    0:00.03 ./build/bin/ndncert-ca-server

Another Third Step: vmmap 28670 | grep Path

   Path:            /Users/ZhangZhiyi/Develop/ndncert/ndncert/build/bin/ndncert-ca-server

Fourth Step: codesign -vvvv /Users/ZhangZhiyi/Develop/ndncert/ndncert/build/bin/ndncert-ca-server

DONE!

Actions #1

Updated by Zhiyi Zhang almost 7 years ago

  • Description updated (diff)
Actions #2

Updated by Davide Pesavento over 2 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF