in reply to Can you delete a file by descriptor?

Delete does not follow symbolic links. It deletes the link. So just delete it.

For a symbolic link to be used against you, a directory would have to be removed (or renamed) and replaced with a symbolic link and then your problem could delete a file that has the same basename as the lock file but in the wrong directory. That seems like an unlikely attack with a minor consequence, but you might want to spend a bit of time examining this for your specific situation.

        - tye (but my friends call me "Tye")
  • Comment on (tye)Re: Can you delete a file by descriptor?

Replies are listed 'Best First'.
Re: (tye)Re: Can you delete a file by descriptor?
by shotgunefx (Parson) on Mar 14, 2002 at 19:21 UTC
    Thanks++ Tye
    I just wanted to make sure I wasn't missing something. Our systems have no users that log on from outside the local network except two internal users and root so the chances of anyone even getting in are slim but I'm just trying to dot all the i's and cross the t's.

    I do find the server idea interesting though. It makes it easier in theory to coordinate resources across servers.

    -Lee

    "To be civilized is to deny one's nature."