linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Ramy M. Hassan" <ramy@gawab.com>
To: <linux-fsdevel@vger.kernel.org>
Subject: kernel space realpath()
Date: Sun, 23 Mar 2003 19:49:18 +0200	[thread overview]
Message-ID: <CCECILLGFFAMGKMMDOHPMEDOCBAA.ramy@gawab.com> (raw)

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



             reply	other threads:[~2003-03-23 17:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-23 17:49 Ramy M. Hassan [this message]
2003-03-23 20:03 ` kernel space realpath() Matthew Wilcox
2003-03-24 21:06   ` Chris Wright
2003-03-24  6:34 ` Jan Hudec
2003-03-24  7:26 ` Nir Tzachar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CCECILLGFFAMGKMMDOHPMEDOCBAA.ramy@gawab.com \
    --to=ramy@gawab.com \
    --cc=linux-fsdevel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).