Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
udev su hardened
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Wed Oct 19, 2005 8:33 am    Post subject: udev su hardened Reply with quote

hi all! :)
ho per le mani una macchina configurata con profilo hardened, che ha installato anche un kernel hardened (hardened-sources-2.6.11)
ho provato a fare l'upgrade al 2.6.13, installando il pacchetto in ~x86.

succede una cosa strana. il kernel 2.6.11-hardened si ostina a voler usare ancora devfs, e non capisco perché... il nuovo kernel usa sì udev, però rimane fermo al boot su "activating udev".
^C sblocca la situazione e poi sembra andare avanti regolarmente. vorrei capire perché succede questo. non è una cosa simpatica :(

qualche idea?

EDIT:
dimenticavo: sotto /dev ho un super porcaio di devices, come se ci fossero devices statici. udev non dovrebbe creare solo il minimo indispensabile?
Back to top
View user's profile Send private message
Luca89
Advocate
Advocate


Joined: 27 Apr 2005
Posts: 2107
Location: Agrigento (Italy)

PostPosted: Wed Oct 19, 2005 9:09 am    Post subject: Reply with quote

Se ti ritrovi tanti devices che non hai probabilmente è perchè hai questa variabile settata su "yes" nel /etc/conf.d/rc.

Code:
# UDEV OPTION:
# Set to "yes" if you want to save /dev to a tarball on shutdown
# and restore it on startup.  This is useful if you have a lot of
# custom device nodes that udev does not handle/know about.

RC_DEVICE_TARBALL="no"

Back to top
View user's profile Send private message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Wed Oct 19, 2005 9:12 am    Post subject: Reply with quote

già fatto. è la prima cosa che ho fatto... non cambia niente :(
Back to top
View user's profile Send private message
makoomba
Bodhisattva
Bodhisattva


Joined: 03 Jun 2004
Posts: 1856

PostPosted: Wed Oct 19, 2005 9:41 am    Post subject: Reply with quote

in /dev ci sono tutti i devices contenuti negli stages, quindi niente di anomalo.
cos'hai nel bootloader ?
Back to top
View user's profile Send private message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Wed Oct 19, 2005 12:43 pm    Post subject: Reply with quote

makoomba wrote:
in /dev ci sono tutti i devices contenuti negli stages, quindi niente di anomalo.
cos'hai nel bootloader ?

scusa...? non credo di aver capito il tuo post
cosa vuol dire "ci sono tutti i devices contenuti negli stages"?

e cosa intendi con l'ultima domanda?
se ti riferisci alla riga append del kernel, è questa:
Code:
image = /boot/kernel-genkernel-x86-2.6.13-hardened-r1
        initrd = /boot/initramfs-genkernel-x86-2.6.13-hardened-r1
        root = /dev/ram0
        label = 613-h-r1
        read-only # read-only for checking
        append = "dolvm2 real_root=/dev/lvm/root init=/linuxrc quiet"
Back to top
View user's profile Send private message
makoomba
Bodhisattva
Bodhisattva


Joined: 03 Jun 2004
Posts: 1856

PostPosted: Wed Oct 19, 2005 12:52 pm    Post subject: Reply with quote

udev viene montato al boot su un tmpfs che si sovrappone alla reale cartella /dev esistente nella partizione root.

se udev non ti parte, è probabile che il "porcaio" che vedi in /dev siano i devices statici contenuti negli stage di installazione.

aggiungi udev ai parametri.
Back to top
View user's profile Send private message
Dr.Dran
l33t
l33t


Joined: 08 Oct 2004
Posts: 766
Location: Imola - Italy

PostPosted: Mon Jan 30, 2006 10:05 pm    Post subject: Reply with quote

@k.gothmog
ehm... visto che debbo procedere con una nuova installazione provando a fare anche un apiccola guidina (tipo hardened howto) come hai risolto il problema? Era solo una svista nella configurazione?

Ciuaz :D
_________________
:: [Dr.Dran] Details ::
- Linux User # 286282
- IT FreeLance Consultant
- President of ImoLUG [Imola & Faenza Linux User Group]
Back to top
View user's profile Send private message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Mon Jan 30, 2006 11:09 pm    Post subject: Reply with quote

DranXXX wrote:
ehm... visto che debbo procedere con una nuova installazione provando a fare anche un apiccola guidina (tipo hardened howto) come hai risolto il problema? Era solo una svista nella configurazione?
ma... va così tanto di moda la parola hardened?
comuqnue... si trattava di un problema legato a quella particolare versione dell'insieme kernel, grsecurity, udev, genpatches. una situazione abbastanza sfigata, insomma... i nuovi hardened-sources non soffrono più di questo problema
Back to top
View user's profile Send private message
!equilibrium
Bodhisattva
Bodhisattva


Joined: 06 Jun 2004
Posts: 2109
Location: MI/BG/LC

PostPosted: Tue Jan 31, 2006 9:02 am    Post subject: Reply with quote

prova a forzare l'utilizzo di udev senza autoriconoscimento:

/etc/conf.d/rc wrote:
RC_DEVICES="udev"


p.s.: è mattina presto, mi sono appena alzato, non ho fatto colazione e non ho dormito, per cui c'è un'alta probabilità che:

a- stia postando fregnaccie
b- stia postando fregnaccie nel thread sbagliato
c- che non abbia letto tutto il thread
_________________
Arch Tester for Gentoo/FreeBSD
Equilibrium's Universe

all my contents are released under the Creative Commons Licence by-nc-nd 2.5
Back to top
View user's profile Send private message
Ic3M4n
Advocate
Advocate


Joined: 02 Nov 2004
Posts: 3489
Location: Bergamo.

PostPosted: Tue Jan 31, 2006 11:01 am    Post subject: Reply with quote

C C C C C :wink: :lol:
Back to top
View user's profile Send private message
!equilibrium
Bodhisattva
Bodhisattva


Joined: 06 Jun 2004
Posts: 2109
Location: MI/BG/LC

PostPosted: Tue Jan 31, 2006 11:54 am    Post subject: Reply with quote

Ic3M4n wrote:
C C C C C :wink: :lol:


azzz.. eh sì, opzione c in pieno...
mi mancava l'ultimo post di k.gothmog, ora è tutto chiaro, scusatemi (e comprendetemi).
_________________
Arch Tester for Gentoo/FreeBSD
Equilibrium's Universe

all my contents are released under the Creative Commons Licence by-nc-nd 2.5
Back to top
View user's profile Send private message
Dr.Dran
l33t
l33t


Joined: 08 Oct 2004
Posts: 766
Location: Imola - Italy

PostPosted: Tue Jan 31, 2006 8:58 pm    Post subject: Reply with quote

k.gothmog wrote:
ma... va così tanto di moda la parola hardened?


eh eh eh furbacchione, sei statu tu a corrompermi con questa parola eh eh eh io prima lo coniavo con secured system (Vedi OpenNA) eh eh eh

Comunque sto facendo un bel guidino e ho deciso di partire dallo stage2, solo esclusivamente per prova... anche perchè lo stage3 hardened che ho trovato aveva installato di default devfs... il chè mi rompeva un pò le balle... giust o non giusta ho voluto affrontare quest scelta per rifare il mio bel serverino casalingo... e poi via con un filo di gas :D :D :D
_________________
:: [Dr.Dran] Details ::
- Linux User # 286282
- IT FreeLance Consultant
- President of ImoLUG [Imola & Faenza Linux User Group]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum