* frm narahimiat_private "06/20/02 11:33:14 -0500" | sed '1,$s/^/* /' * * * Ok, * More issues to bug you all with. After making those changes in * asm/unistd.h, upon compiling my userspace admin code, I get the following * errors:/usr/include/asm/unistd.h:276: badly punctuated parameter list in * ' *# define'. I'm sure I followed Chris' directions properly. Any ideas out * there? Why are you modifying asm/unistd.h ? Chris was talking about your code when he mention _syscall3() However you may want to use glibc's syscall() rather than the kernel _syscall*() routines. When I tried to use _syscall*() on IA64 I got nowhere (its broken and unsupported). syscall should be available on all platforms. Here's a working example of one of my syscalls.... #include <asm/unistd.h> #ifndef SYS__security #define SYS__security __NR_security #endif int aud_read_from_kernel(char * buf, int size) { aud_args_t args; if (buf == NULL || size <= 0) { errno = EINVAL; return (-1); } args.val.size = size; args.ptr.buffer = buf; return syscall(SYS__security, SYS_SECURITY_MODID, AUD_READ, &args); } It reads data from the kernel and returns it in buf.... * * Thanks, * Niki richard. -- ----------------------------------------------------------------------- Richard Offer Technical Lead, Trust Technology, SGI "Specialization is for insects" _______________________________________________________________________ _______________________________________________ linux-security-module mailing list linux-security-moduleat_private http://mail.wirex.com/mailman/listinfo/linux-security-module
This archive was generated by hypermail 2b30 : Thu Jun 20 2002 - 09:53:30 PDT