Skip to content

Commit

Permalink
drm: set permissions on edid file to 0444
Browse files Browse the repository at this point in the history
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 <keithp@keithp.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Keith Packard authored and Dave Airlie committed Jun 3, 2009
1 parent 75185c9 commit e36ebaf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/drm_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down

0 comments on commit e36ebaf

Please sign in to comment.