This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 1/2 v3] tst-fanotify: new simple test
- From: Andreas Jaeger <aj at suse dot com>
- To: Mike Frysinger <vapier at gentoo dot org>
- Cc: libc-alpha at sourceware dot org
- Date: Wed, 04 Sep 2013 10:56:43 +0200
- Subject: Re: [PATCH 1/2 v3] tst-fanotify: new simple test
- Authentication-results: sourceware.org; auth=none
- References: <1377100993-9438-1-git-send-email-vapier at gentoo dot org> <1378178437-16147-1-git-send-email-vapier at gentoo dot org>
On 09/03/2013 05:20 AM, Mike Frysinger wrote:
> Basic test for the fanotify functions.
This test fails on my Linux 3.10 x86-64 system:
env GCONV_PATH=/home/aj/build/glibc/x86-64/iconvdata LC_ALL=C
/home/aj/build/glibc/x86-64/elf/ld-linux-x86-64.so.2 --library-path
/home/aj/build/glibc/x86-64:/home/aj/build/glibc/x86-64/math:/home/aj/build/glibc/x86-64/elf:/home/aj/build/glibc/x86-64/dlfcn:/home/aj/build/glibc/x86-64/nss:/home/aj/build/glibc/x86-64/nis:/home/aj/build/glibc/x86-64/rt:/home/aj/build/glibc/x86-64/resolv:/home/aj/build/glibc/x86-64/crypt:/home/aj/build/glibc/x86-64/nptl
/home/aj/build/glibc/x86-64/misc/tst-fanotify >
/home/aj/build/glibc/x86-64/misc/tst-fanotify.out
fanotify_init (0, 0) failed: Operation not permitted
make[2]: *** [/home/aj/build/glibc/x86-64/misc/tst-fanotify.out] Error 1
The fanotify_init calls requires the CAP_SYS_ADMIN capability - and
since I run this as user, I do not have it.
Please let the test fail gracefully in this case and handle EPERM,
Andreas
--
Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126