TODO uid_wrapper: Wrap some xattr syscalls, which are called from libattr so get...
authorAndrew Bartlett <abartlet@samba.org>
Mon, 1 Sep 2014 21:47:00 +0000 (09:47 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 7 Sep 2014 23:14:14 +0000 (11:14 +1200)
commit1940b437a9799731054cc0020fb54a5551d7b827
treeab73c9f8d58b342bc51694cf39cc4001c541dd18
parent93a28cecc3ce0f8c32e59a5f2a7fe9a83f815cb1
TODO uid_wrapper: Wrap some xattr syscalls, which are called from libattr so get caught by the LD_PRELOAD

We need to wrap all these in the end, as otherwise AddressSanitizer aborts.

The abort is due to us reading below the current stack frame, because it passes in 7 arguments, which may not actually have been passed in.  The additional issue is that it is assumed that the arguments to us were passed in as integers, or variables placed in the function call ABI in a way compatible with integers.  As an extreme example, if a float was passed, my understandin is that this emulation would not be correct.

Andrew Bartlett

Change-Id: Iaacfa9b3fa926956abb54bad0f810bb2a65d231d
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
lib/uid_wrapper/uid_wrapper.c