diff options
author | Paul Moore <pmoore@redhat.com> | 2013-04-22 16:04:23 -0400 |
---|---|---|
committer | Paul Moore <pmoore@redhat.com> | 2013-04-22 16:04:23 -0400 |
commit | b0ed84ca8d4abc88984881049d572f558aaf1838 (patch) | |
tree | cd0094948a043271c7f5c653266375aa66ab08fc | |
parent | e9466c0aa50293418d7244b0b57f586761e4c14f (diff) | |
download | libseccomp-b0ed84ca8d4abc88984881049d572f558aaf1838.tar.gz |
bpf: fix the bpf_program struct
In a previous commit I reordered the bpf_program struct, and in the
process I broke the prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, ...)
API. This patch restores the proper bpf_program structure ordering.
Signed-off-by: Paul Moore <pmoore@redhat.com>
-rw-r--r-- | src/gen_bpf.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gen_bpf.h b/src/gen_bpf.h index 954ce7f..fe0580e 100644 --- a/src/gen_bpf.h +++ b/src/gen_bpf.h @@ -28,9 +28,10 @@ #include "db.h" #include "system.h" +/* NOTE - do not change this structure, it is part of the prctl() API */ struct bpf_program { - bpf_instr_raw *blks; uint16_t blk_cnt; + bpf_instr_raw *blks; }; #define BPF_PGM_SIZE(x) \ ((x)->blk_cnt * sizeof(*((x)->blks))) |