News for hackers. Stuff that matters.
Re:Dotfile madness by cma on Saturday February 02, 2019 @12:31PM (#19064286)
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.
Re:Dotfile madness by ksherlock on Saturday February 02, 2019 @12:40PM (#19064345)
Have you seen actual programs (not shell scripts) that do that? I've heard of code smells, but that's a programmer smell with there.
Re:Dotfile madness by netsec_burn on Saturday February 02, 2019 @12:46PM (#19064393)
I 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.
Re:Dotfile madness by larkeith on Saturday February 02, 2019 @06:28PM (#19066565)
Couldn't you just record the creating process and all ancestors?
Re:Dotfile madness by netsec_burn on Saturday February 02, 2019 @12:36PM (#19064323)
You're right. I can see anything like scripts getting difficult. It wouldn't work for all use cases.