mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* A question about comm and verifing user memory address inside a system call
@ 2005-11-20 15:06 loop lopy
  0 siblings, 0 replies; only message in thread
From: loop lopy @ 2005-11-20 15:06 UTC (permalink / raw)
  To: linux-kernel

Hello

I have a few question I would appreaciate if you help
me with.

I need to add my own system call to the kernel.
I know how to do it, but I have a few problems.
First, I need to pass a null terminated string address
to the system call by the wrapper, which calls
int0x80.
Related to that string there is something called
'comm', however I havent found what is comm that is
related to the NULL terminated string or system call.
So, what can comm be?
Secondly, when I need to verify that the memory
address of string, passed as paramter is valid.
I can use access_ok, but is it enough just to check if
copy_from_user is successful?
So, I actually don't need to use access_ok?

I am not subscribed with the list, so I need that the
replies will be personally CC'ed (not sure exactly
what that means).

Thanks for any help and reply.
Ofer.



	
		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-11-20 15:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-20 15:06 A question about comm and verifing user memory address inside a system call loop lopy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®