From 23e182279c6e3c0d824587b0c46315a4888f5b50 Mon Sep 17 00:00:00 2001 From: Ivan Priest Date: Mon, 25 Jun 2018 16:35:02 +0100 Subject: [PATCH] [9610][7885][7872][7570] wlbt: remove IWOTH permissions from procs Some /proc and mxlog debugfs notes had "other writeable" permissions, remove these. Change-Id: Ie209f69ef6b25da36321303bd4b80f412bc1c489 SCSC-Bug-Id: SSB-41270 Signed-off-by: Ivan Priest --- drivers/misc/samsung/scsc/mxproc.c | 6 +++--- drivers/misc/samsung/scsc/scsc_logring_debugfs.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/misc/samsung/scsc/mxproc.c b/drivers/misc/samsung/scsc/mxproc.c index 264bfcf72c46..4d7de78733b1 100644 --- a/drivers/misc/samsung/scsc/mxproc.c +++ b/drivers/misc/samsung/scsc/mxproc.c @@ -387,9 +387,9 @@ int mxproc_create_ctrl_proc_dir(struct mxproc *mxproc, struct mxman *mxman) mxproc->mxman = mxman; mxproc->procfs_ctrl_dir = parent; mxproc->procfs_ctrl_dir_num = proc_count; - MX_PROCFS_ADD_FILE(mxproc, mx_fail, parent, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH); - MX_PROCFS_ADD_FILE(mxproc, mx_freeze, parent, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH |S_IWOTH); - MX_PROCFS_ADD_FILE(mxproc, mx_panic, parent, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH); + MX_PROCFS_ADD_FILE(mxproc, mx_fail, parent, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH); + MX_PROCFS_ADD_FILE(mxproc, mx_freeze, parent, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH); + MX_PROCFS_ADD_FILE(mxproc, mx_panic, parent, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH); MX_PROCFS_ADD_FILE(mxproc, mx_suspend, parent, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH); MX_PROCFS_ADD_FILE(mxproc, mx_suspend_count, parent, S_IRUSR | S_IRGRP | S_IROTH); MX_PROCFS_ADD_FILE(mxproc, mx_recovery_count, parent, S_IRUSR | S_IRGRP | S_IROTH); diff --git a/drivers/misc/samsung/scsc/scsc_logring_debugfs.c b/drivers/misc/samsung/scsc/scsc_logring_debugfs.c index cddaac9d139f..97a9f8a11868 100644 --- a/drivers/misc/samsung/scsc/scsc_logring_debugfs.c +++ b/drivers/misc/samsung/scsc/scsc_logring_debugfs.c @@ -634,7 +634,7 @@ void __init *samlog_debugfs_init(const char *root_name, void *rb) if (!di->statfile) goto no_statfile; - di->samwritefile = debugfs_create_file(SCSC_SAMWRITE_FNAME, 0222, + di->samwritefile = debugfs_create_file(SCSC_SAMWRITE_FNAME, 0220, di->bufdir, NULL, &samwrite_fops); if (!di->samwritefile) -- 2.20.1