From 13fbcde1e7356f8e97e3f5cedb306d67c8242383 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 71bdee518e..d225625efe 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 @@ -136,7 +136,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,