From 83989be027341a1add3c12f2e3690ee1032beba1 Mon Sep 17 00:00:00 2001 From: Paul Moore Date: Thu, 2 Apr 2020 20:37:32 -0400 Subject: api: use EACCESS over EPERM This is part of our error code cleanup and API promise. Acked-by: Tom Hromatka Signed-off-by: Paul Moore --- tests/11-basic-basic_errors.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/11-basic-basic_errors.c b/tests/11-basic-basic_errors.c index ddd9e38..a41b7b5 100644 --- a/tests/11-basic-basic_errors.c +++ b/tests/11-basic-basic_errors.c @@ -81,7 +81,7 @@ int main(int argc, char *argv[]) return -1; else { rc = seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(read), 0); - if (rc != -EPERM) + if (rc != -EACCES) return -1; rc = seccomp_rule_add(ctx, SCMP_ACT_KILL - 1, SCMP_SYS(read), 0); if (rc != -EINVAL) -- cgit v1.2.1