diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2024-07-31 02:09:44 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2024-08-01 01:22:14 +0300 |
commit | efc7a85bc00a767427c219a43d0bb420dfc6361b (patch) | |
tree | 7a4efcd5d0da89a4febe098b8b0f811402648f26 /src/apps/qcam/assets/feathericons/rewind.svg | |
parent | 93d975194522450894a6fe7554b28a14fbfe7214 (diff) |
libcamera: shared_mem_object: Prevent memfd from shrinking or growing
The memfd underlying the SharedMem object must not shrink, or memory
corruption will happen. Prevent this by setting the shrink seal on the
file. As there's no valid use case for growing the memory either, set
the grow seal as well.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Milan Zamazal <mzamazal@redhat.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Tested-by: Milan Zamazal <mzamazal@redhat.com>
Tested-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'src/apps/qcam/assets/feathericons/rewind.svg')
0 files changed, 0 insertions, 0 deletions