From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Ramy M. Hassan" Subject: kernel space realpath() Date: Sun, 23 Mar 2003 19:49:18 +0200 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: To: List-Id: linux-fsdevel.vger.kernel.org Hi, I am new to kernel development. I am developing now a kernel module to create log of all file operations under a certain specified directory. I intercept the system calls that may do modifications to this directory contents and create the logfile. My problem is that a system call like sys_unlink takes a path that could be relative, and could contain ".." or ".". It might also contain components that are symlinks to other directories. So I want to get the real path of that file given its relative path name. Is there anyway to do that ? I appreciate your help. Best regards Ramy