All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Halcrow <uml@halcrow.us>
To: Blaisorblade <blaisorblade_spam@yahoo.it>
Cc: Michael Halcrow <uml@halcrow.us>,
	user-mode-linux-devel@lists.sourceforge.net,
	user-mode-linux-user@lists.sourceforge.net
Subject: [uml-devel] Re: [uml-user] keyring syscalls
Date: Tue, 25 Jan 2005 15:54:16 -0600	[thread overview]
Message-ID: <20050125215416.GA2912@halcrow.us> (raw)
In-Reply-To: <200411181839.26596.blaisorblade_spam@yahoo.it>

[-- Attachment #1: Type: text/plain, Size: 1756 bytes --]

On Thu, Nov 18, 2004 at 06:39:26PM +0100, Blaisorblade wrote:
> On Thursday 18 November 2004 17:09, Michael Halcrow wrote:
> Ok, please list the new syscalls - I see at least add_key() and
> request_key() too - are these three the only ones? I'll build the
> patch ASAP when getting your answer.

I spent some more time today trying to implement these silly
request_key, add_key, and keyctl syscalls in the 2.6.10 kernel, but I
haven't had any luck.  It would be a *tremendous* help for me in my
filesystem development if I could just get these syscalls working in
UML; it is much more tedious having to use kgdb in my debugging.  I
tried adding entries on to the end of the
include/sysdep-i386/syscalls.h and the kernel/sys_call_table.c files.
I also exported the symbols in os-Linux/user_syms.c.  I am trying to
work from the documentation here:

http://jdike.stearns.org/uml/arch-port.html

I am not entirely clear on the function that ``[ 222 ] =
sys_ni_syscall,'' at the end of the table in syscalls.h is supposed to
serve.  Syscalls in UML contstitutes new territory for me.

I would assume that the __NR_* assignments in the UML environment are
identical to those of the host system.  That means that request_key,
for example, maps to identifier 288 on the i386 architecture, right?
The keyctl.c utility defines these syscall identifiers, so I need to
make sure that I get the numbers right for the syscall table lookup.

Thanks,
Mike
.___________________________________________________________________.
                         Michael A. Halcrow                          
       Security Software Engineer, IBM Linux Technology Center       
GnuPG Fingerprint: 05B5 08A8 713A 64C1 D35D  2371 2D3C FDDA 3EB6 601D

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  parent reply	other threads:[~2005-01-25 21:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20041118160909.GA7630@halcrow.us>
2004-11-18 17:39 ` [uml-devel] Re: [uml-user] keyring syscalls Blaisorblade
2004-11-18 17:43   ` Michael Halcrow
2005-01-25 21:54   ` Michael Halcrow [this message]
2005-01-25 22:21     ` Henrik Nordstrom
2005-01-25 22:37     ` Blaisorblade
2005-01-25 22:46       ` Michael Halcrow
2005-01-25 23:02         ` Blaisorblade

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=20050125215416.GA2912@halcrow.us \
    --to=uml@halcrow.us \
    --cc=blaisorblade_spam@yahoo.it \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    --cc=user-mode-linux-user@lists.sourceforge.net \
    /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 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.