From 15b54482241083d52b6e9857a66fecbf915d467d Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Thu, 8 Jun 2023 20:05:18 +0200 Subject: cooker: Full support for flags and masks, assorted fixes Signed-off-by: Stefano Brivio --- common/gluten.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common') diff --git a/common/gluten.h b/common/gluten.h index 101b92e..a90cf4a 100644 --- a/common/gluten.h +++ b/common/gluten.h @@ -352,7 +352,7 @@ static inline const void *gluten_ptr(const struct seccomp_data *s, static inline bool check_gluten_limits(struct gluten_offset v, size_t size) { struct gluten_offset off = { v.type, v.offset + size }; - if (is_offset_valid(off)) + if (v.type == OFFSET_SECCOMP_DATA || is_offset_valid(off)) return true; err(" offset limits are invalid"); -- cgit v1.2.3