ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Mikhail Zabaluev <mhz@alt-linux.org>
To: mandrake-russian@altlinux.ru
Subject: Re: [mdk-re] LRN & database.inc
Date: Thu May 24 12:29:01 2001
Message-ID: <20010524124542.B3377@localhost.localdomain> (raw)
In-Reply-To: <3B0CB024.6070809@altlinux.ru>; from rider@altlinux.ru on Thu, May 24, 2001 at 10:54:28AM +0400

Hello Anton,

On Thu, May 24, 2001 at 10:54:28AM +0400, Anton Farygin wrote:
>
> Понятно.
> Итак, посмотрим - что же для меня нужно:
> 1. Включать библиотеки LRN, которые в данный момент лежат в составе 
> сайта, но есть мысль вынести их за его пределы.
> 2. Включать database.inc, в котором будут настройки сайтов и пароли 
> доступа к базам.
> 3. Читать/писать в /tmp
> 4. Читать .theme файлы, которые в принципе могут лежать в любом месте 
> системы, в том числе и в пользовательских каталогах (форум на 
> gimp.linux.ru.net так и реализован).

Если .theme лежит в том же каталоге, что и вызывающий ее скрипт - нет
проблем, включаешь '.' в перечисление open_basedir.

> И еще - а как в таком случае обстоят дела с запуском внешних программ?
> Например тип файла я определяю с помощью системной утилиты file, которая 
> обращается к /etc/mime-magic и /usr/share/mime ???

Вот тут бы не помешал exec-wrapper, который бы менял UID. Потому что
иначе можно с помощью cat прочитать все, что мы пытаемся защитить.

-- 
Stay tuned,
  MhZ                                     JID: mookid@jabber.org
___________
The truth about a man lies first and foremost in what he hides.
		-- Andre Malraux



  parent reply	other threads:[~2001-05-24 12:29 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-16 12:56 Vyt
2001-05-23  3:27 ` Anton Farygin
2001-05-23 11:42   ` Mikhail Zabaluev
2001-05-23 12:37     ` Vyt
2001-05-24 10:50       ` Anton Farygin
2001-05-24 11:16         ` Vyt
2001-05-24 12:33           ` Mikhail Zabaluev
2001-05-25 16:03           ` Anton Farygin
2001-05-23 14:32     ` Vlad Vostrykh
2001-05-23 23:38       ` Mikhail Zabaluev
2001-05-24 10:52       ` Anton Farygin
2001-05-24 12:32         ` Mikhail Zabaluev
2001-05-25 16:02           ` Anton Farygin
2001-05-24 12:29       ` Mikhail Zabaluev [this message]
2001-05-25 16:04         ` Anton Farygin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010524124542.B3377@localhost.localdomain \
    --to=mhz@alt-linux.org \
    --cc=mandrake-russian@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git