summaryrefslogtreecommitdiff
path: root/src/api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/api.c')
-rw-r--r--src/api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api.c b/src/api.c
index 837d020..77dc290 100644
--- a/src/api.c
+++ b/src/api.c
@@ -449,7 +449,7 @@ API int seccomp_rule_add_array(scmp_filter_ctx ctx,
if (rc < 0)
return rc;
if (action == col->attr.act_default)
- return -EPERM;
+ return -EACCES;
return db_col_rule_add(col, 0, action, syscall, arg_cnt, arg_array);
}
@@ -498,7 +498,7 @@ API int seccomp_rule_add_exact_array(scmp_filter_ctx ctx,
if (rc < 0)
return rc;
if (action == col->attr.act_default)
- return -EPERM;
+ return -EACCES;
if (col->filter_cnt > 1)
return -EOPNOTSUPP;