Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0f53631a authored by Devin Kim's avatar Devin Kim Committed by Gerrit - the friendly Code Review server
Browse files

Sensors: Fix the permission of apds993x nodes



sysfs nodes should not be world writeable

Change-Id: Ieb5f1b28c070feb758da1c1c7ea5a7a7adf564af
Signed-off-by: default avatarDevin Kim <dojip.kim@lge.com>
Git-commit: 5718f96237aef5085785ba28511874cba5ad8904
Git-repo: https://android.googlesource.com/kernel/msm.git


[mengmeng@codeaurora.org: cherry picked from mirrored branch]
Signed-off-by: default avatarOliver Wang <mengmeng@codeaurora.org>
parent 59697a5b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1383,7 +1383,7 @@ static ssize_t apds993x_store_enable_ps_sensor(struct device *dev,
	return count;
}

static DEVICE_ATTR(enable_ps_sensor, S_IWUGO | S_IRUGO,
static DEVICE_ATTR(enable_ps_sensor, S_IWUSR | S_IWGRP | S_IRUGO,
		apds993x_show_enable_ps_sensor,
		apds993x_store_enable_ps_sensor);

@@ -1414,7 +1414,7 @@ static ssize_t apds993x_store_enable_als_sensor(struct device *dev,
	return count;
}

static DEVICE_ATTR(enable_als_sensor, S_IWUGO | S_IRUGO,
static DEVICE_ATTR(enable_als_sensor, S_IWUSR | S_IWGRP | S_IRUGO,
		apds993x_show_enable_als_sensor,
		apds993x_store_enable_als_sensor);