Skip to content

Commit

Permalink
api: renumber the pseudo syscall for subpage_prot()
Browse files Browse the repository at this point in the history
Unfortunately the pseduo syscall number for subpage_prot() was
already in use by spu_run() so renumber it to a free pseduo syscall
number.

Signed-off-by: Paul Moore <[email protected]>
  • Loading branch information
pcmoore committed Sep 22, 2018
1 parent 9d4f7f6 commit 1e64feb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/seccomp.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -1591,11 +1591,6 @@ int seccomp_export_bpf(const scmp_filter_ctx ctx, int fd);
#define __NR_spu_run __PNR_spu_run
#endif /* __NR_spu_run */

#define __PNR_subpage_prot -10189
#ifndef __NR_subpage_prot
#define __NR_subpage_prot __PNR_subpage_prot
#endif /* __NR_subpage_prot */

#define __PNR_swapcontext -10190
#ifndef __NR_swapcontext
#define __NR_swapcontext __PNR_swapcontext
Expand Down Expand Up @@ -1690,6 +1685,11 @@ int seccomp_export_bpf(const scmp_filter_ctx ctx, int fd);
#define __NR_s390_sthyi __PNR_s390_sthyi
#endif /* __NR_s390_sthyi */

#define __PNR_subpage_prot -10207
#ifndef __NR_subpage_prot
#define __NR_subpage_prot __PNR_subpage_prot
#endif /* __NR_subpage_prot */

#ifdef __cplusplus
}
#endif
Expand Down

0 comments on commit 1e64feb

Please sign in to comment.