From b27bfe4c09b399b2270ddfc103260fc72a0a2184 Mon Sep 17 00:00:00 2001 From: brueffer Date: Thu, 13 Feb 2014 09:24:46 +0000 Subject: MFC: r261566 Use CAP_EVENT instead of the deprecated CAP_POLL_EVENT. PR: 185382 (based on) Submitted by: Loganaden Velvindron Reviewed by: pjd --- tools/regression/security/cap_test/cap_test_capabilities.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/regression') diff --git a/tools/regression/security/cap_test/cap_test_capabilities.c b/tools/regression/security/cap_test/cap_test_capabilities.c index d4347ee..02288ad 100644 --- a/tools/regression/security/cap_test/cap_test_capabilities.c +++ b/tools/regression/security/cap_test/cap_test_capabilities.c @@ -396,7 +396,7 @@ try_file_ops(int filefd, int dirfd, cap_rights_t rights) pollfd.revents = 0; ret = poll(&pollfd, 1, 0); - if (rights & CAP_POLL_EVENT) + if (rights & CAP_EVENT) CHECK((pollfd.revents & POLLNVAL) == 0); else CHECK((pollfd.revents & POLLNVAL) != 0); @@ -546,7 +546,7 @@ test_capabilities(void) TRY(CAP_SEM_POST); TRY(CAP_SEM_WAIT); TRY(CAP_POST_EVENT); - TRY(CAP_POLL_EVENT); + TRY(CAP_EVENT); TRY(CAP_IOCTL); TRY(CAP_TTYHOOK); TRY(CAP_PDGETPID); -- cgit v1.1