mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
utags:assign access permissions for tcmd
tcmd daemon needs to read and write some node with system group permission: 1. read reload status 2. write ascii node subtask:(CR) Change-Id: Ie6740e1aab5292fe6984f7f12656aeac6d70cde4 Signed-off-by: xizx <xizx@motorola.com> Reviewed-on: https://gerrit.mot.com/1235016 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Haichao Li <liuhc3@motorola.com> Reviewed-by: Konstantin Makariev <kmakariev@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
e1dcbeffdf
commit
8cbbe2f26d
1 changed files with 2 additions and 2 deletions
|
|
@ -601,7 +601,7 @@ static int proc_utag_file(char *utag_name, char *utag_type,
|
|||
node->mode = mode;
|
||||
node->dir = dnode->dir;
|
||||
node->ctrl = ctrl;
|
||||
node->file = proc_create_data(node->file_name, 0640,
|
||||
node->file = proc_create_data(node->file_name, 0660,
|
||||
dnode->dir, fops, node);
|
||||
|
||||
pr_debug("created file [%s/%s]\n",
|
||||
|
|
@ -1895,7 +1895,7 @@ static int utags_probe(struct platform_device *pdev)
|
|||
if (!strncmp(ctrl->dir_name, HW_ROOT, sizeof(HW_ROOT)))
|
||||
ctrl->hwtag = 1;
|
||||
|
||||
if (!proc_create_data("reload", 0600, ctrl->root, &reload_fops, ctrl)) {
|
||||
if (!proc_create_data("reload", 0640, ctrl->root, &reload_fops, ctrl)) {
|
||||
pr_err("Failed to create reload entry\n");
|
||||
destroy_workqueue(ctrl->load_queue);
|
||||
destroy_workqueue(ctrl->store_queue);
|
||||
|
|
|
|||
Loading…
Reference in a new issue