From mboxrd@z Thu Jan 1 00:00:00 1970 From: "James Stevenson" Subject: Re: Misc C question Date: Thu, 20 Jun 2002 22:53:32 +0100 Sender: linux-c-programming-owner@vger.kernel.org Message-ID: <002d01c218a4$ecb20cb0$0501a8c0@Stev.org> References: Return-path: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: GOMEZ NOGUERA DAVIDEDUARDO , Glynn Clements Cc: xmp , linux-c-programming@vger.kernel.org Hi thats because you can check for it. it disappears and sombody creates a symlink to somewhere like /etc/passwd :) you need to check it open it and check it again on the open fd ----- Original Message ----- From: "GOMEZ NOGUERA DAVIDEDUARDO" To: "Glynn Clements" Cc: "xmp" ; Sent: Thursday, June 20, 2002 9:42 PM Subject: Re: Misc C question > hello. > sorry if the message gets duplicated. > > I read a while ago of some security issues on doing checks on files before > opening, wich is harmfull if the program is suid. > > But i dont remember what to do about it. > can someone refresh it to me? > is there anyway you can lock a file access and tell the kernel? and what > would happen if the program crashes without unlocking the file? > > bye bye > > > - > To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html