Re: Running application can't create a file

Irvanda Kurniadi <[email protected]>
Newsgroups gmane.comp.micro-kernel.l4.devel
Message-ID <CAPgw+iPfBSP2+XEp3r1OaOi6p-opPy7+Nm_8=0RC2HdtPpNRhw@mail.gmail.com>
On Sat, Mar 1, 2014 at 8:34 AM, Adam Lackorzynski <[email protected]
> wrote:

>I think there is a trick to launch this tiff application over
> > L4/fiasco, so the kernel can permit the application to create a file.
>
> Per default, there's no writable directory available.
> You can use tmpfs. Add the following in your application's Makefile:
> REQUIRES_LIBS += libmount libl4revfs-fs-tmpfs



Then add a fstab file, with this content (usual syntax):
> /     /tmp    tmpfs defaults
>
> The last thing to do is to tell your application where to find the fstab
> file. You need a config file for that, with this content:
>
> L4.default_loader:start({}, "rom/tiff_test2", { FSTAB_FILE = "rom/fstab"
> });
>
> Do not forget to change your module.list entry, add ned and put
> "roottask moe rom/config.cfg" there instead of the --init version.
>
> Now you should be able to write in /tmp in your application.


I did the instruction above. It seems like the application could write in
/tmp directory. But I'm curious which /tmp directory that the application
use to create the file? Since I couldn't find the created file anywhere. Is
it by any chance located in /tmp of the running application? If it's the
case, Is there any other way to access the created file that has been
created by my application?

regards,

Irvanda

_______________________________________________
l4-hackers mailing list
[email protected]
http://os.inf.tu-dresden.de/mailman/listinfo/l4-hackers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.