• Dmitry Safonov's avatar
    zdtm/fanotify00: fix fanotify_{init, mark} calls · d6f18fa4
    Dmitry Safonov authored
    O_* flags should be in event_f_flags parameter, according to
    fanotify_init(2).
    On x86_32 fanotify_mark() has second mask argument (as mask is 64-bit,
    the higher parts of mask shouldn't be used):
    > COMPAT_SYSCALL_DEFINE6(fanotify_mark,
    > 				int, fanotify_fd, unsigned int, flags,
    > 				__u32, mask0, __u32, mask1, int, dfd,
    > 				const char  __user *, pathname)
    > {
    > 	return sys_fanotify_mark(fanotify_fd, flags,
    > #ifdef __BIG_ENDIAN
    > 				((__u64)mask0 << 32) | mask1,
    > #else
    > 				((__u64)mask1 << 32) | mask0,
    > #endif
    > 				 dfd, pathname);
    
    travis-ci: success for 32-bit tests fixes
    Signed-off-by: 's avatarDmitry Safonov <dsafonov@virtuozzo.com>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
    d6f18fa4
Name
Last commit
Last update
..
inhfd Loading commit data...
jenkins Loading commit data...
others Loading commit data...
zdtm Loading commit data...
.gitignore Loading commit data...
Makefile Loading commit data...
abrt.sh Loading commit data...
check_actions.py Loading commit data...
crit-recode.py Loading commit data...
criu.py Loading commit data...
empty-netns-prep.sh Loading commit data...
groups.desc Loading commit data...
inhfd.desc Loading commit data...
rpc_pb2.py Loading commit data...
show_action.sh Loading commit data...
umount2.c Loading commit data...
zdtm.desc Loading commit data...
zdtm.py Loading commit data...
zdtm_ct.c Loading commit data...
zdtm_mount_cgroups Loading commit data...