Re: albods are not a clean set of orthogonal primitives (was Re: File systems are semantically impov

Pavel Machek (pavel@bug.ucw.cz)
Fri, 25 Jun 1999 11:58:13 +0200


Hi!

> I don't think filters is a good idea. They just keep multiplying out of
> control. Kernel implementations are supposed to be simple, elegant
> solutions to specific issues. The problem here is how to provide 'clustering'
> of information without sacrificing accessibility. Clustering of
> information includes both the file data, directory data, and meta-data.
>
> My original proposal addressed most of these issues. First, non-specialized
> applications would see special Meta-Files as ordinary files. There would be
> no problem with FTP, cp, etc. There could be a problem with randomly
> using commands that could alter a file, but that is why we have permissions.
>
> I had already gone through the PRELOAD user space iteration, but there is
> one big problem. The basic reason that I proposed this as a kernel issue was
> the
> problem of being able to execute an image that is contained within a
> Meta-File.
> Nearly all other features are user space issues.

If you only want to execute programs out of files, that is
doable. Podfuk is much better annimal for such experiments than
PRELOAD (believe
me). http://atrey.karlin.mff.cuni.cz/~pavel/podfuk/podfuk.html.

I guess everyone seen that url 10 times already. But - what about
actually looking what is in there? No kernel modifications needed. 300
lines of simple code + midnight commander. Nothing complicated. And
here is transcript me executing code from inside of tar file, btw.

Script started on Fri Jun 25 11:54:22 1999
pavel@bug:/tmp$ tar czf vf bash.tar /bin/bash
tar: Removing leading `/' from absolute path names in the archive
bin/bash
pavel@bug:/tmp$ ls bash.tar$ #utar
bin/
pavel@bug:/tmp$ ls bash.tar#utar bash.tar#utar/bin/bash
pavel@bug:/tmp$ you see? this is bash running from tar file!
bash.tar#utar/bin/bash: you: command not found
pavel@bug:/tmp$ Use "exit" to leave the shell.
pavel@bug:/tmp$ exit
pavel@bug:/tmp$ Use "exit" to leave the shell.
pavel@bug:/tmp$
Script done on Fri Jun 25 11:55:01 1999

Pavel

-- 
I'm really pavel@ucw.cz. Look at http://195.113.31.123/~pavel.  Pavel
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/