Re: Mac Trojan in the Wild



On 2009-01-24, Tom Stiller <tom_stiller@xxxxxxxxx> wrote:

1. create a symbolic link and an alias to some file
2. move the target file to another directory on the same volume
3. try to access the target with the symlink; what happens?
4. access the target with the alias; what happens?

The answer of course is that the symbolic link stops working when you
move the file it is pointing to, whereas the alias does not.

Hard links, like aliases, do not break when you move the file they point
to - but then hard links can't traverse file system boundaries.

I don't use aliases, but apparently they can even point to a file stored
inside a disk image. When accessing such an alias the system will
automatically mount the disk image.

Ian

--
Ian Gregory
http://www.zenatode.org.uk/ian/
.



Relevant Pages

  • Re: [Bulk] Re: Backup with rsync problem
    ... create a link to TARGET with the name LINK_NAME. ... hard links by default, symbolic links with --symbolic. ... and another reason to save rsync output. ... was working (i.e included dot files) not just the regular file part. ...
    (Fedora)
  • Re: cant set group owner cdrom for link /dev/dvd
    ... Symbolic links are by design that way, ... permissions of the target are what matter. ... Hard links are just that. ... if you are using any kind of Debian Linux other than Woody ...
    (Debian-User)
  • what is necessary for directory hard links
    ... This patch is the sum total of all that I had to change in the kernel ... VFS layer to support hard links to directories and a few worse things ... There will be races: the target directory ... void unlock_rename(struct dentry *p1, struct dentry *p2) ...
    (Linux-Kernel)
  • Re: Save a record through network!
    ... insert into Target from name loRecord ... Actually it would generally be best to have only a single copy of the table shared by both computers, then if you add a record you only need add it once and both computers will have it. ...
    (microsoft.public.fox.programmer.exchange)
  • simple alias search question
    ... Using Linux, I have this alias that does exactly what I want: ... And my target text is shown in reverse video. ...
    (comp.unix.shell)