aboutsummaryrefslogtreecommitdiff
path: root/tests/nixos/setuid/fchmodat2-suid.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/nixos/setuid/fchmodat2-suid.c')
-rw-r--r--tests/nixos/setuid/fchmodat2-suid.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/nixos/setuid/fchmodat2-suid.c b/tests/nixos/setuid/fchmodat2-suid.c
index 931489ad7..7280331d5 100644
--- a/tests/nixos/setuid/fchmodat2-suid.c
+++ b/tests/nixos/setuid/fchmodat2-suid.c
@@ -12,10 +12,7 @@ int main(void) {
fprintf(fd, "henlo :3");
fclose(fd);
- // FIXME use something nicer here that's less
- // platform-dependent as soon as we go to 24.05
- // and the glibc is new enough to support fchmodat2
- long rs = syscall(452, NULL, name, S_ISUID, 0);
+ long rs = syscall(SYS_fchmodat2, NULL, name, S_ISUID, 0);
assert(rs == -1);
assert(errno == EPERM);
}