From 754dca11efbf8737c3b9e36b23ba4f2948a3a4f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Fri, 6 May 2022 17:53:51 +0200 Subject: [PATCH] libs: va: Add O_CLOEXEC flag at opening drm device. So any other potential subprocess won't have access to it. Part-of: --- subprojects/gst-plugins-bad/gst-libs/gst/va/gstvadisplay_drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/va/gstvadisplay_drm.c b/subprojects/gst-plugins-bad/gst-libs/gst/va/gstvadisplay_drm.c index d92569a07f..035ec7404c 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/va/gstvadisplay_drm.c +++ b/subprojects/gst-plugins-bad/gst-libs/gst/va/gstvadisplay_drm.c @@ -135,7 +135,7 @@ gst_va_display_drm_create_va_display (GstVaDisplay * display) int fd, saved_errno = 0; GstVaDisplayDrm *self = GST_VA_DISPLAY_DRM (display); - fd = open (self->path, O_RDWR); + fd = open (self->path, O_CLOEXEC | O_RDWR); saved_errno = errno; if (fd < 0) { GST_WARNING_OBJECT (self, "Failed to open %s: %s", self->path,