From: Keith Packard Date: Sun, 31 May 2009 03:42:26 +0000 (-0700) Subject: drm: set permissions on edid file to 0444 X-Git-Tag: upstream/snapshot3+hdmi~18735^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e36ebaf49274ffa78f17b62bcae4c92c33b5b391;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git drm: set permissions on edid file to 0444 Without initializing the sysfs attributes for the edid file, it was created with mode 0, making it difficult for applications to use. Signed-off-by: Keith Packard Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/drm_sysfs.c b/drivers/gpu/drm/drm_sysfs.c index 182bdf9..9987ab8 100644 --- a/drivers/gpu/drm/drm_sysfs.c +++ b/drivers/gpu/drm/drm_sysfs.c @@ -317,6 +317,7 @@ static struct device_attribute connector_attrs_opt1[] = { static struct bin_attribute edid_attr = { .attr.name = "edid", + .attr.mode = 0444, .size = 128, .read = edid_show, };