Constant ROOT_ONLY

Source
pub const ROOT_ONLY: u32 = bindings::drm_ioctl_flags_DRM_ROOT_ONLY; // 4u32
Expand description

Anything that could potentially wreak a master file descriptor needs to have this flag set.

Current that’s only for the SETMASTER and DROPMASTER ioctl, which e.g. logind can call to force a non-behaving master (display compositor) into compliance.

This is equivalent to callers with the SYSADMIN capability.