qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/3] linux-user: Implement missing *xattr calls
@ 2011-12-14 15:37 Peter Maydell
  2011-12-14 15:37 ` [Qemu-devel] [PATCH 1/3] linux-user: Allow NULL value pointer in setxattr and getxattr Peter Maydell
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Peter Maydell @ 2011-12-14 15:37 UTC (permalink / raw)
  To: qemu-devel; +Cc: Riku Voipio, patches

These patches implement the missing *xattr syscalls:
 listxattr
 fsetattr, fgetattr, fremovexattr, flistxattr
 lsetattr, lgetattr, lremovexattr, llistxattr

They also fix a bug in the existing code where we weren't allowing a
NULL value pointer.

Tested with the testcases in crackerjack. (There are some cases where
we don't behave exactly like the native kernel:
 * we check for bad pointers earlier, so tend to return EFAULT when the
   kernel might return EINVAL in a "caller did two wrong things" case
 * we insist on the whole of the caller's buffer being writable whereas
   the kernel only cares about being able to write the data it actually
   needs, so we will fail EFAULT some bad callers that the kernel doesn't
I don't think these are important.)

Peter Maydell (3):
  linux-user: Allow NULL value pointer in setxattr and getxattr
  linux-user/syscall.c: Implement f and l versions of
    set/get/removexattr
  linux-user: Implement *listxattr syscalls

 linux-user/syscall.c |  139 ++++++++++++++++++++++++++++++++++++++++++++------
 1 files changed, 123 insertions(+), 16 deletions(-)

-- 
1.7.5.4

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

end of thread, other threads:[~2012-01-27 14:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-14 15:37 [Qemu-devel] [PATCH 0/3] linux-user: Implement missing *xattr calls Peter Maydell
2011-12-14 15:37 ` [Qemu-devel] [PATCH 1/3] linux-user: Allow NULL value pointer in setxattr and getxattr Peter Maydell
2011-12-14 15:37 ` [Qemu-devel] [PATCH 2/3] linux-user/syscall.c: Implement f and l versions of set/get/removexattr Peter Maydell
2011-12-14 15:37 ` [Qemu-devel] [PATCH 3/3] linux-user: Implement *listxattr syscalls Peter Maydell
2012-01-04 11:39 ` [Qemu-devel] [PATCH 0/3] linux-user: Implement missing *xattr calls Peter Maydell
2012-01-27 14:32   ` Peter Maydell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).