2d8cac4caeb21ae8e5426b7c839bd5ff3896bd37 |
|
15-Mar-2016 |
Cyril Hrubis <chrubis@suse.cz> |
syscalls/fanotify: Fix clenaups Close the notify_fd only if it was opened succesfully otherwise the test will produce WARNING in cleanup in case that fanotify support was not compiled in kernel and hence the fanotify_init() returned -1. Also add TERRNO to the message. Signed-off-by: Cyril Hrubis <chrubis@suse.cz> Reported-by: Julio Cruz <jcsistemas2001@gmail.com>
/external/ltp/testcases/kernel/syscalls/fanotify/fanotify04.c
|
dd9240e8597330c6ed8fd07c2cc153fdd04bd60d |
|
05-Mar-2016 |
Waldemar Brodkorb <wbx@openadk.org> |
syscalls/fanotify: Define _GNU_SOURCE Needed for uClibc-ng/uCLibc to define O_DIRECTORY. Signed-off-by: Waldemar Brodkorb <wbx@openadk.org> Acked-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/fanotify/fanotify04.c
|
d6d11d08678aac1ed2c370ea8e42e5f45aea07be |
|
09-Mar-2015 |
Cyril Hrubis <chrubis@suse.cz> |
Introduce tst_parse_opts() The pattern that was used in all testcases is: const char *msg; msg = parse_opts(...); if (msg) tst_brkm(TBROK, NULL, "OPTION PARSING ERROR - %s", msg); This change simplifies the steps to just calling: tst_parse_opts(...); Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/fanotify/fanotify04.c
|
aabb8340f63ed31afe995fd97795e542dc68b93c |
|
04-Feb-2015 |
Cyril Hrubis <chrubis@suse.cz> |
Include usctest.h in test.h Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/fanotify/fanotify04.c
|
605fa3362fd7cef0baa2131be32cf44661783d3e |
|
04-Feb-2015 |
Cyril Hrubis <chrubis@suse.cz> |
Get rid of TEST_CLEANUP Special thanks to Coccinelle for making this easy job. Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/fanotify/fanotify04.c
|
ff96476bbaaa4685a94813e370bfa4de47884976 |
|
29-Jul-2014 |
Helge Deller <deller@gmx.de> |
fix fanotify syscall (again) This patch to some degree reverts my last patch which was committed as: commit 5d08e164964e19be693e6e8fddf3afb82e505b4f Author: Helge Deller <deller@gmx.de> Date: Wed Apr 16 21:00:28 2014 +0200 fix fanotify syscall check on compat kernel The problem is, that fanotify_mark() uses a 64bit parameter (mask). When calling this syscall with it's 64bit parameter on a 32bit arch it is very architecture and compiler dependend, in which order the lower and higher 32bits are put on the stack and thus ends up in the arguments for the Linux kernel. So, to avoid any problems we really need to call this syscall the same way as it's defined by glibc. This patch drops the myfanotify*() functions and uses the fanotify*() functions directly from the glibc header <sys/fanotify.h> if available. If the header is not available, it will provide wrapped syscalls as fallback. Furthermore, in the fanotify03 testcase it will now correctly return TCONF instead of TFAIL if the CONFIG_FANOTIFY_ACCESS_PERMISSIONS kernel config option has not been set in the currently running Linux kernel. Tested on the hppa/parisc 32- and 64bit architecture. Signed-off-by: Helge Deller <deller@gmx.de>
/external/ltp/testcases/kernel/syscalls/fanotify/fanotify04.c
|
0b9589f3f9c0345b29cfcf7da5a1253c708303eb |
|
27-May-2014 |
Cyril Hrubis <chrubis@suse.cz> |
testcases: Constify char *msg variable. The parse_opts() now returns const char * instead of char * this commit fixes all warnings caused by the change. Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/fanotify/fanotify04.c
|
f057c1c9861cf87ffa94d96702bbac6714e71c3f |
|
20-Nov-2013 |
Jan Kara <jack@suse.cz> |
fanotify: Add tests verifying fanotify syscalls Signed-off-by: Jan Kara <jack@suse.cz>
/external/ltp/testcases/kernel/syscalls/fanotify/fanotify04.c
|