the display server has no master drm_fd when it is launched in container
environment and it connect with host display server.
Change-Id: I14942c7e9a63f1b3472bdb961b08bf7fa198e40b
#include "config.h"
+#include <xf86drm.h>
+
#include "tbm_bufmgr_int.h"
#include "tbm_bufmgr_backend.h"
#include "tbm_drm_helper.h"
TBM_INFO("tbm_module has render node.");
close(fd);
error = TBM_ERROR_NONE;
+ } else if (!drmIsMaster(fd)) {
+ TBM_INFO("tbm_module has no master drm_fd");
+ close(fd);
+ error = TBM_ERROR_NONE;
} else {
// make the wayland server socket for sending the authenticated drm_fd to wayland clients.
if (!tbm_drm_helper_wl_auth_server_init(native_display, fd, NULL, 0)) {