* [gentoo-docs-it] Tradotto security/shb-mounting.xml
@ 2006-04-10 11:03 Cristiano Chiucchiolo
2006-04-13 20:29 ` Stefano Rossi
0 siblings, 1 reply; 2+ messages in thread
From: Cristiano Chiucchiolo @ 2006-04-10 11:03 UTC (permalink / raw
To: gentoo-docs-it
[-- Attachment #1: Type: text/plain, Size: 2 bytes --]
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: shb-mounting.xml --]
[-- Type: text/xml; name="shb-mounting.xml", Size: 2677 bytes --]
<?xml version='1.0' encoding='UTF-8'?>
<!-- $Header:
/var/www/www.gentoo.org/raw_cvs/gentoo/xml/htdocs/doc/en/security/shb-mounting.
xml,v 1.2 2005/06/01 17:42:46 neysx Exp $ -->
<!DOCTYPE sections SYSTEM "/dtd/book.dtd">
<!-- The content of this document is licensed under the CC-BY-SA license -->
<!-- See http://creativecommons.org/licenses/by-sa/1.0 -->
<sections>
<version>1.0</version>
<date>2005-05-31</date>
<section>
<title>Montare partizioni</title>
<body>
<p>
Quando montate una partizione <c>ext2</c>, <c>ext3</c>, o <c>reiserfs</c>, avete
diverse opzioni che potete applicare nel file <path>/etc/fstab</path>. Le
opzioni sono:
</p>
<ul>
<li>
<c>nosuid</c> - Ignora il SUID bit e lo rende proprio come un file ordinario
</li>
<li>
<c>noexec</c> - Impedisce l'esecuzione di file da questa partizione
</li>
<li>
<c>nodev</c> - Ignora i dispositivi
</li>
</ul>
<p>
Sfortunatamente queste impostazioni possono essere facilmente eluse eseguendo un
percorso non diretto. Tuttavia, impostare <path>/tmp</path> a noexec bloccherà
la maggiorparte degli exploit progettati per essere eseguiti direttamente da
<path>/tmp</path>.
</p>
<pre caption="/etc/fstab">
/dev/sda1 /boot ext2 noauto,noatime 1 1
/dev/sda2 none swap sw 0 0
/dev/sda3 / reiserfs notail,noatime 0 0
/dev/sda4 /tmp reiserfs notail,noatime,nodev,nosuid,noexec 0 0
/dev/sda5 /var reiserfs notail,noatime,nodev 0 0
/dev/sda6 /home reiserfs notail,noatime,nodev,nosuid 0 0
/dev/sda7 /usr reiserfs notail,noatime,nodev,ro 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
proc /proc proc defaults 0 0
</pre>
<warn>
Mettere <path>/tmp</path> in modalità <c>noexec</c> può impedire la corretta
esecuzione di alcuni script.
</warn>
<note>
Per la quote disco vedere <uri link="?part=1&chap=5#quotas">la sezione sulle
quote</uri>.
</note>
<note>
Io non imposto <path>/var</path> a <c>noexec</c> o <c>nosuid</c>, anche se di
solito nessun file viene eseguito da questo mount point. La ragione è che qmail
viene installato in <path>/var/qmail</path> e deve essegli consentito di
eseguire e di accedere a un SUID file. Io configuro <path>/usr</path> in
modalità read-only, dato che non scrivo mai nulla là, a meno che non voglia
aggiornare Gentoo. In questo caso rimonto il filesystem in modalità read-write,
aggiorno il sistema e rimonto di nuovo.
</note>
<note>
Anche se non usate qmail, Gentoo ha bisogno lo stesso del bit eseguibile
impostato su <path>/var/tmp</path>, dato che gli ebuild vengono compilati qui.
Ma può sempre essere configurato un percorso alternativo, se proprio volete
montare <path>/var</path> in modalità <c>noexec</c>.
</note>
</body>
</section>
</sections>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [gentoo-docs-it] Tradotto security/shb-mounting.xml
2006-04-10 11:03 [gentoo-docs-it] Tradotto security/shb-mounting.xml Cristiano Chiucchiolo
@ 2006-04-13 20:29 ` Stefano Rossi
0 siblings, 0 replies; 2+ messages in thread
From: Stefano Rossi @ 2006-04-13 20:29 UTC (permalink / raw
To: gentoo-docs-it
[-- Attachment #1: Type: text/plain, Size: 72 bytes --]
online
--
Gentoo Documentation Project
Italian Follow-Up Translator
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 256 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-04-13 20:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-10 11:03 [gentoo-docs-it] Tradotto security/shb-mounting.xml Cristiano Chiucchiolo
2006-04-13 20:29 ` Stefano Rossi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox