Y
Hacker News
new
|
ask
|
show
|
jobs
by
qubex
3028 days ago
There's no reason why one shouldn't be able to invoke the chdir system call and implement the same behaviour.
2 comments
chc
3028 days ago
Well, I mean, a program can call chdir() and it works exactly as it's supposed to, but it only affects
that program
, not a different program.
link
gowld
3028 days ago
Allowing any process to arbitrarily modify the state of another process would be a disaster for stability and security.
link
colejohnson66
3028 days ago
Isn’t that what a debugger does?
link
Someone
3027 days ago
Yes, and it is a disaster for stability and security. The designers of
dtrace
worked hard on the stability part. See, for example, the section on DIF safety in
https://www.cs.princeton.edu/courses/archive/fall04/cos518/p...
.
link