Network Extensions and parent process ID

I am very new to IOS development and currently working on network extension. I have been trying to fetch parent process ID using control filters. Is there a way to fetch it using controlFilters or dataFilters?

Answered by DTS Engineer in 810595022
Is there a way to fetch it using controlFilters or dataFilters?

Parent process of what? The process that’s responsible for the network connection that’s represented by an NEFilterFlow object?

If so, then no, there’s no way to get that information. However, that information wouldn’t help you. On iOS most user-level processes, including all processes running third-party code, have launchd as their parent.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Is there a way to fetch it using controlFilters or dataFilters?

Parent process of what? The process that’s responsible for the network connection that’s represented by an NEFilterFlow object?

If so, then no, there’s no way to get that information. However, that information wouldn’t help you. On iOS most user-level processes, including all processes running third-party code, have launchd as their parent.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Is there any other way to get parent process ID other than filters?

Is there any other way to get parent process ID other than filters?

What are you planning to do with the parent process ID? As I mentioned, on iOS it’s generally not useful, so I’m curious why you need it.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Network Extensions and parent process ID
 
 
Q