lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Wed, 17 Jun 2009 16:03:38 +0200
From:	Philipp Marek <philipp.marek@...rion.com>
To:	linux-kernel@...r.kernel.org
Subject: Changing the data of hardlinked symlinks

Hello everybody,

I'd like to know if there's something I'm missing, or whether that's simply 
not possible currently - or won't ever because of POSIX.

I have hardlinks of symlinks, like this:
	# ls -la
	-rw-r--r--  1 root root     0 Jun 17 15:36 daten
	drwxr-xr-x  2 root root  4096 Jun 17 15:37 daten2
	lrwxrwxrwx  3 root root     5 Jun 17 15:36 link -> daten
	lrwxrwxrwx  3 root root     5 Jun 17 15:36 link2 -> daten
	lrwxrwxrwx  3 root root     6 Jun 17 15:37 link3 -> daten2
	lrwxrwxrwx  3 root root     6 Jun 17 15:37 link4 -> daten2
	lrwxrwxrwx  3 root root     5 Jun 17 15:36 link5 -> daten
	lrwxrwxrwx  3 root root     6 Jun 17 15:37 link6 -> daten2

Now I'd like to change the inode of one of the symlinks, but in a way that 
*all* symlinks sharing the inode are changed, too.

"ln -f" doesn't work; "man symlink" and "man link" let me believe that it's 
not possible.


I even looked at debugfs, but from a quick look I only saw how to read the 
data of an inode ("cat") - nothing to write it back.


Is there some way to do that?


Regards,

Phil

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ