I have sandboxing enabled and use /sbin/ping with NSTask:
[task setLaunchPath:@"/sbin/ping"];
[task setArguments:[NSArray arrayWithObjects:@"-c10", iPAddress, nil]];
Everything works great and I get the expected output.
I also want to use /usr/sbin/traceroute with NSTask:
[task setLaunchPath:@"/usr/sbin/traceroute"];
[task setArguments:[NSArray arrayWithObject:iPAddress]];
But the task terminates with the message: NSTask: Task create for path '/usr/sbin/traceroute' failed: 22, "Invalid argument". Terminating temporary process.* At the same time the sandbox logs: deny forbidden-exec-sugid
Why does it work with ping, but not with traceroute ? And how do I make it work with traceroute ?
Thx!