4 ms·
Programs can use programs like 'touch' to create the files so you'd have to get meta into a chain of process ownership or something while exempting the user's s
by cma 8y ago
Programs can use programs like 'touch' to create the files so you'd have to get meta into a chain of process ownership or something while exempting the user's shell.
- netsec_burn 8y agoYou're right. I can see anything like scripts getting difficult. It wouldn't work for all use cases.
- ksherlock 8y agoHave you seen actual programs (not shell scripts) that do that? I've heard of code smells, but that's a programmer smell with there.
- netsec_burn 8y agoI think touch is a generic example, but not a practical one. The idea is that program A can launch program B, and you'd have to recursively search for the parent. But it's not easy to find which parent is the true owner, maybe an exception can be made for init but shells can't have that exception as they are sometimes the owner.
- larkeith 8y agoCouldn't you just record the creating process and all ancestors?