[prev in list] [next in list] [prev in thread] [next in thread]
List: user-mode-linux-user
Subject: Re: [uml-user] Adding system call in UML and compiling program for it
From: Blaisorblade <blaisorblade_spam () yahoo ! it>
Date: 2004-11-02 23:01:45
Message-ID: 200411030001.45390.blaisorblade_spam () yahoo ! it
[Download RAW message or body]
On Monday 01 November 2004 16:13, Kristian Sørensen wrote:
> Hi!
>
> We have a small problem when adding a new system call to Linux .. It works
> perfect in the plain kernel, but UML yields some trouble when compiling a
> program for it.
> The system call is named umb_set_child_restrictions and is implemeted in
> our Umbrella LSM module.
> When compiling a user space program using the system call (and the
> C_INCLUDE_PATH is pointing correctly at linux-2.6.8.1-um/include) we get a
> huge trace of errors (attached).
This *is* uncorrect for userspace programs.
Nobody should compile with UML kernel headers - and I think that *refusing*
bug reports about them for UML is the correct way. Use i386 headers.
Actually, even using i386 headers is a bad practice, normally they must be
sanitized, but it happens to work (not at all guaranted).
Even better, the *same* binary should run in both cases. If your syscall has
different interfaces for i386 and UML, it's a bug - UML is aimed to emulate
the native ABI of the host processor.
> We found no problems in linux-2.6.3. For all versions of Linux it works
> smoothly for i386.
> Can anyone give a pointer of how to go from here?
>
> PS. Is UML migrated into the vanilla kernel? I saw a few posts on LKML
> about UM...
Yes, as of 2.6.9.
--
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id065&opĖk
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic