-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Pupeno wrote:
| Otra cosa m�s, en la epoca que yo aprend� todo esto, tampoco se podian hacer
| hard links de directorios, ultimamente me parece que se pueden hacer, pero
| solo si sos root.

La problema residia en evitar una referencia circular entre directorios, que 
llevaria a una especie
de ataque de denegacion de servicio... despues se implemento un "workaround" 
que en vez de corregir
el problema, contaba la cantidad de referencias, y si superaba un cierto 
limite, tiraba algun error
que no recuerdo. Por eso es que solo a root, dependiendo del kernel, se le 
permitia armar hard links
de directorios.

En mi Kernel Linux 2.6.9-gentoo-r9 (gentoo-dev-sources ebuild), obtengo esto:
(el -F es para permitirle a root crear links entre directorios).

murray ~ # ln -F /etc etc2
ln: creating hard link `etc2' to `/etc': Operation not permitted

El strace de dicho comando:

stat64("etc2", 0xbffff740)              = -1 ENOENT (No such file or directory)
lstat64("/etc", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("etc2", 0xbffff6d0)             = -1 ENOENT (No such file or directory)
lstat64("etc2", 0xbffff6d0)             = -1 ENOENT (No such file or directory)
link("/etc", "etc2")                    = -1 EPERM (Operation not permitted)

- --
Arturo "Buanzo" Busleiman - www.buanzo.com.ar - GNU/Linux Documentation
President, Open Information System Security Group - Argentina

In the darkest night, If my memory serves me right, I'll never turn back
time, Forgetting you, but not the time (Green Day, Whatsername)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFByvafAlpOsGhXcE0RAvSxAJ9aiD7QVlhoORjTJnpSZ7FgI039cwCfadG+
IQwYKGp6XGZGTXM+jsH5HME=
=xpBJ
-----END PGP SIGNATURE-----
begin:vcard
fn:Arturo 'Buanzo' Busleiman
n:Busleiman;Arturo
org:OISSG
adr:;;;;BA;;Argentina
email;internet:[EMAIL PROTECTED]
x-mozilla-html:FALSE
url:http://www.buanzo.com.ar
version:2.1
end:vcard

-- 
Para desuscribirte ten�s que visitar la p�gina
https://listas.linux.org.ar/mailman/listinfo/lugar-gral/

/* Publica y encontra trabajo relacionado con softlibre en 
http://www.linux.org.ar/modules/jobs/ */

Si ten�s alg�n inconveniente o consulta escrib� a mailto:[EMAIL PROTECTED]

Responder a