View previous topic :: View next topic |
Author |
Message |
.:chrome:. Advocate
Joined: 19 Feb 2005 Posts: 4588 Location: Brescia, Italy
|
Posted: Wed Oct 05, 2005 8:00 pm Post subject: file eseguibili in /lib |
|
|
solo oggi ho fatto caso ad un fatto che mi ha sconvolto
tutti i file in /lib hanno il bit di eseguibilità abilitato. c'è una spiegazione ragionevole per questo? |
|
Back to top |
|
|
grentis Guru
Joined: 20 Jul 2004 Posts: 321
|
Posted: Wed Oct 05, 2005 8:06 pm Post subject: |
|
|
Probabilmente le librerie per essere utilizzate devono essere "eseguite"
Però se è una cazzata quella che ho detto non sgridarmiiii...per favoooreeeee!
|
|
Back to top |
|
|
.:chrome:. Advocate
Joined: 19 Feb 2005 Posts: 4588 Location: Brescia, Italy
|
Posted: Wed Oct 05, 2005 8:10 pm Post subject: |
|
|
fai conto che ti abbia riversato contro un'infinità di insulti (è il pensiero che conta )
no, seriamente... le librerie non devono essere eseguite.
casomai si può eseguire /lib/libc.so.6; in alcuni casi può essere utile conoscerne l'output, ma è l'unico caso, che io sappia.
tant'è vero che altre distribuzioni GNU/Linux quel bit non è abilitato.
sono tremendamente perplesso |
|
Back to top |
|
|
randomaze Bodhisattva
Joined: 21 Oct 2003 Posts: 9985
|
Posted: Wed Oct 05, 2005 8:48 pm Post subject: |
|
|
k.gothmog wrote: | tant'è vero che altre distribuzioni GNU/Linux quel bit non è abilitato. |
Interessante... non mi ero mai posto il problema.
Chissá se il bit é abilitato in fase di installazione dall'autore del pacchetto oppure forzato dall'ebuild... _________________ Ciao da me! |
|
Back to top |
|
|
silian87 Advocate
Joined: 06 Oct 2003 Posts: 2318 Location: Treviso, Italy
|
Posted: Wed Oct 05, 2005 8:55 pm Post subject: |
|
|
Quote: |
Chissá se il bit é abilitato in fase di installazione dall'autore del pacchetto oppure forzato dall'ebuild... |
Ho guardato un po' di ebuild che forniscono librerie e non vedo nessun chmod +x... rimane sempre il dubbio sull'utilita' di questo...
Quote: | Unfortunately file permissions are lost when copying libraries this way which is why the chmod +x command is then used to set the execute flag on all of the libraries on the rootdisk. |
Cercando su google ho visto che spesso in creazione di ambienti chroot si imposta l'eseguibilita' delle librerie... boh! _________________ Musica che ascolto: http://www.last.fm/user/silian87/
Silian87 FAQs: http://marentax.homelinux.org/~silian87/silian87-faq.txt
GTalk: silian87@gmail.com |
|
Back to top |
|
|
Cazzantonio Bodhisattva
Joined: 20 Mar 2004 Posts: 4514 Location: Somewere around the world
|
Posted: Thu Oct 06, 2005 8:43 am Post subject: |
|
|
Interessante... finora non l'avevo notato... Effettibamente Debian non ha il bit di eseguibilità sulle librerie...
Prova a postare un bug report e guarda cosa ti rispondono...
Effettivamente la cosa è strana... _________________ Any mans death diminishes me, because I am involved in Mankinde; and therefore never send to know for whom the bell tolls; It tolls for thee.
-John Donne |
|
Back to top |
|
|
ProT-0-TypE Veteran
Joined: 20 Dec 2003 Posts: 1624 Location: Cagliari
|
Posted: Thu Oct 06, 2005 8:55 am Post subject: |
|
|
debian non ce l'ha ma fedora si. il mistero si infittisce!
Su freebsd sono ancora più restrittivi: -r--r--r-- _________________ [Vuoi guadagnare navigando?] |
|
Back to top |
|
|
makoomba Bodhisattva
Joined: 03 Jun 2004 Posts: 1856
|
Posted: Thu Oct 06, 2005 11:41 am Post subject: |
|
|
che mi ricordi, con un canonico "./configure ; make" gli shared objects sono già +x |
|
Back to top |
|
|
.:chrome:. Advocate
Joined: 19 Feb 2005 Posts: 4588 Location: Brescia, Italy
|
Posted: Thu Oct 06, 2005 1:20 pm Post subject: Re: file eseguibili in /lib |
|
|
ho fatto un esperimento con metodo altamente scientifico.
ho rimosso il bit di eseguibilità a tutto. risultato non funzionava più una togna
cambierò approccio. inizierò a documentarmi |
|
Back to top |
|
|
randomaze Bodhisattva
Joined: 21 Oct 2003 Posts: 9985
|
Posted: Thu Oct 06, 2005 8:06 pm Post subject: Re: file eseguibili in /lib |
|
|
k.gothmog wrote: | ho rimosso il bit di eseguibilità a tutto. risultato non funzionava più una togna |
Che errore dava?
Hai provato a riabilite l'esecuzione selettivamente in presenza di errore sulla lib mano mano che apparivano gli errori? _________________ Ciao da me! |
|
Back to top |
|
|
.:chrome:. Advocate
Joined: 19 Feb 2005 Posts: 4588 Location: Brescia, Italy
|
Posted: Thu Oct 06, 2005 8:09 pm Post subject: Re: file eseguibili in /lib |
|
|
qualunque comando restituiva permission denied.
ho riavviato con LiveCD (che avevo in parte pronto all'uso perché me l'aspettavo ) e ho rimesso tutto a posto.
secondo me non avrei dovuto rimuovere l'eseguibilità a /lib/libc.so.6: io credo che quella debba essere eseguibile obbligatoriamente.
quando avrò tempo proverò |
|
Back to top |
|
|
|