Path: utzoo!utgpu!water!watmath!clyde!rutgers!rochester!udel!gatech!mcnc!thorin!wasp!gallmeis From: gallmeis@wasp.cs.unc.edu (Bill Gallmeister) Newsgroups: comp.unix.wizards Subject: Re: To find out the names of open files in a process Summary: KISS Message-ID: <904@thorin.cs.unc.edu> Date: 27 Jan 88 20:42:37 GMT References: <2346@mandrill.CWRU.Edu> <339@tandem.UUCP> <7124@ncoast.UUCP> Sender: news@thorin.cs.unc.edu Reply-To: gallmeis@wasp.UUCP (Bill Gallmeister) Organization: University Of North Carolina, Chapel Hill Lines: 30 In article <7124@ncoast.UUCP> allbery@ncoast.UUCP (Brandon Allbery) writes: >As quoted from <339@tandem.UUCP> by narayan@tandem.UUCP (narayan mohanram TCP/IP Conso): >+--------------- >| In article <2346@mandrill.CWRU.Edu>, garg@mandrill.CWRU.Edu (Dev Datt Garg) writes: >| > to add is to be able to save the context of a process at any point in the >| > user program, so that at later stage program can be restarted from that point. >| >| Alternately you can write a simple character device driver that will >| open a file given inode information. You can thus supply this as >| an ioctl to the program that can then munge the internals of the >| kernel data structures (XXX). >+--------------- > >That last sounds like a security disaster to me... I promised myself I wouldn't get into this. So here I am. What's wrong with rewriting the library routines so they squirrel away file names + file statistics, then pass them over when the process gets migrated? It really seems that the mapping of filename to inode can be done outside of the kernel. And therefore should be. Run the processes under control of a "puppet master" that knows how to do these things. Much better than modifying the kernel, although it doesn't look quite as good on the resume... this kind of reminds me of someone who asked how to get the size of a malloc'ed block. The answer? "Remember how much you asked for, dimwit!" - bill o --- Bill O. Gallmeister gallmeis@cs.unc.edu "Offer me solutions -- offer me alternatives -- and I decline. It's the end of the world as we know it, and I feel fine."