ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* permissions in luatex-cache
@ 2008-01-09 20:41 Peter Münster
  2008-01-09 21:47 ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Münster @ 2008-01-09 20:41 UTC (permalink / raw)
  To: ConTeXt list

Hello,

What directories in luatex-cache should be world writable?
It seems to me, at least some sub-dirs in
$TEXMFCACHE/luatex-cache/context/XXX/fonts

And do these world writable directories present any security risk?
(For example: user A writes some evil code into file
$TEXMFCACHE/luatex-cache/context/XXX/fonts/otf/file.otf that makes user B
remove all his files when running "texexec --luatex document.tex")

Cheers, Peter

-- 
http://pmrb.free.fr/contact/

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: permissions in luatex-cache
  2008-01-09 20:41 permissions in luatex-cache Peter Münster
@ 2008-01-09 21:47 ` Hans Hagen
  2008-01-09 22:36   ` Peter Münster
  0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2008-01-09 21:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Peter Münster wrote:
> Hello,
> 
> What directories in luatex-cache should be world writable?
> It seems to me, at least some sub-dirs in
> $TEXMFCACHE/luatex-cache/context/XXX/fonts

the whole cache

> And do these world writable directories present any security risk?
> (For example: user A writes some evil code into file
> $TEXMFCACHE/luatex-cache/context/XXX/fonts/otf/file.otf that makes user B
> remove all his files when running "texexec --luatex document.tex")

you can use a cache in your home path and make that country or city 
writable

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: permissions in luatex-cache
  2008-01-09 21:47 ` Hans Hagen
@ 2008-01-09 22:36   ` Peter Münster
  2008-01-09 23:35     ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Münster @ 2008-01-09 22:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, Jan 09, 2008 at 10:47:16PM +0100, Hans Hagen wrote:
> 
> > And do these world writable directories present any security risk?
> > (For example: user A writes some evil code into file
> > $TEXMFCACHE/luatex-cache/context/XXX/fonts/otf/file.otf that makes user B
> > remove all his files when running "texexec --luatex document.tex")
> 
> you can use a cache in your home path and make that country or city 
> writable

So you mean, there is a security risk, luatex does not check its input and
arbitrary code can be executed?

The disadvantage of one cache per user is, that everybody needs to
regenerate the formats after an update, since the formats are also placed
there...

Cheers, Peter

(it was just a question out of curiosity, on my systems, there are no evil
users of course ;)

-- 
http://pmrb.free.fr/contact/

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: permissions in luatex-cache
  2008-01-09 22:36   ` Peter Münster
@ 2008-01-09 23:35     ` Hans Hagen
  0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2008-01-09 23:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Peter Münster wrote:

> (it was just a question out of curiosity, on my systems, there are no evil
> users of course ;)

well, in principle one can use traditional tex for evil things too since 
it can write files

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-01-09 23:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-09 20:41 permissions in luatex-cache Peter Münster
2008-01-09 21:47 ` Hans Hagen
2008-01-09 22:36   ` Peter Münster
2008-01-09 23:35     ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).