All of lore.kernel.org
 help / color / mirror / Atom feed
* Technical question
@ 2003-04-23 17:04 Jimmy Dubuisson
  2003-04-24 10:51 ` hp
  2003-04-24 11:30 ` hp
  0 siblings, 2 replies; 3+ messages in thread
From: Jimmy Dubuisson @ 2003-04-23 17:04 UTC (permalink / raw)
  To: linux-assembly

Hi everybody,

I made a LKM running on a rehat 7.3 because I need to intercept a chdir
system call. The problem is that inside my chdir intercepting function I
would like to use the 'do_execve' function. For this, as you know, I
need to intialize the 'pt_regs' structure with the saved registry values
on the stack. But as you also know, the chdir system call only takes a
string as its argument. So my question is the following :

How can I get these registry values (in fact edx for the list of
environment variables) by using if possible the C language and the
functions available in the kernel ?

Thanks in advance for your response,

Cheers,

Jimmy.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Technical question
  2003-04-23 17:04 Technical question Jimmy Dubuisson
@ 2003-04-24 10:51 ` hp
  2003-04-24 11:30 ` hp
  1 sibling, 0 replies; 3+ messages in thread
From: hp @ 2003-04-24 10:51 UTC (permalink / raw)
  To: Jimmy Dubuisson, linux-assembly

Jimmy Dubuisson am Mittwoch, 23. April 2003 18:04:
> Hi everybody,
>
> I made a LKM running on a rehat 7.3 because I need to intercept a chdir
> system call. The problem is that inside my chdir intercepting function I
> would like to use the 'do_execve' function. For this, as you know, I

for what -doubtful- purpose???

> environment variables) by using if possible the C language and the
> functions available in the kernel ?

as you might probably have deduced from the mailing address:
	this is "linuxASSEMBLY" 


best...
	hp
-
To unsubscribe from this list: send the line "unsubscribe linux-assembly" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Technical question
  2003-04-23 17:04 Technical question Jimmy Dubuisson
  2003-04-24 10:51 ` hp
@ 2003-04-24 11:30 ` hp
  1 sibling, 0 replies; 3+ messages in thread
From: hp @ 2003-04-24 11:30 UTC (permalink / raw)
  To: Jimmy Dubuisson, linux-assembly

Jimmy Dubuisson am Mittwoch, 23. April 2003 18:04:
> Hi everybody,
>
> I made a LKM running on a rehat 7.3 because I need to intercept a chdir
> system call. The problem is that inside my chdir intercepting function I
> would like to use the 'do_execve' function. For this, as you know, I

for what -doubtful- purpose???

> environment variables) by using if possible the C language and the
> functions available in the kernel ?

as you might probably have deduced from the mailing address:
	this is "linuxASSEMBLY" 


best...
	hp

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-04-24 11:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-23 17:04 Technical question Jimmy Dubuisson
2003-04-24 10:51 ` hp
2003-04-24 11:30 ` hp

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.