diff options
author | Alice Frosi <afrosi@redhat.com> | 2023-05-10 14:20:01 +0200 |
---|---|---|
committer | Alice Frosi <afrosi@redhat.com> | 2023-05-10 14:20:01 +0200 |
commit | b29288b8b000730bbd416b0e1f4f4c694e346e20 (patch) | |
tree | 06d6aaf5a1116134ef065e5848ce4af5e17ff954 /common | |
parent | b2aed1dc699adbac63bd35ffb5b014384a58fb94 (diff) | |
download | seitan-b29288b8b000730bbd416b0e1f4f4c694e346e20.tar seitan-b29288b8b000730bbd416b0e1f4f4c694e346e20.tar.gz seitan-b29288b8b000730bbd416b0e1f4f4c694e346e20.tar.bz2 seitan-b29288b8b000730bbd416b0e1f4f4c694e346e20.tar.lz seitan-b29288b8b000730bbd416b0e1f4f4c694e346e20.tar.xz seitan-b29288b8b000730bbd416b0e1f4f4c694e346e20.tar.zst seitan-b29288b8b000730bbd416b0e1f4f4c694e346e20.zip |
ops: check for SECCOMP_DATA
Add check if offset type is SECCOMP_DATA and the seccomp request is set.
Diffstat (limited to 'common')
-rw-r--r-- | common/gluten.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/gluten.h b/common/gluten.h index 078c6fa..8d74819 100644 --- a/common/gluten.h +++ b/common/gluten.h @@ -244,6 +244,9 @@ static inline const void *gluten_ptr(const struct seccomp_data *s, if (!is_offset_valid(x)) return NULL; + if(x.type == OFFSET_SECCOMP_DATA && s == NULL) + return NULL; + switch (x.type) { case OFFSET_DATA: return g->data + x.offset; |