lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tip-de809347aeef0a68c04576c464414d0e4dce59fc@git.kernel.org>
Date:	Mon, 17 Aug 2009 09:51:36 GMT
From:	tip-bot for Amerigo Wang <amwang@...hat.com>
To:	linux-tip-commits@...r.kernel.org
Cc:	linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...hat.com,
	arjan@...ux.intel.com, penberg@...helsinki.fi,
	vegard.nossum@...il.com, mpm@...enic.com,
	eduard.munteanu@...ux360.ro, amwang@...hat.com, tglx@...utronix.de,
	rientjes@...gle.com, mingo@...e.hu, cl@...ux-foundation.org
Subject: [tip:timers/urgent] timers: Drop write permission on /proc/timer_list

Commit-ID:  de809347aeef0a68c04576c464414d0e4dce59fc
Gitweb:     http://git.kernel.org/tip/de809347aeef0a68c04576c464414d0e4dce59fc
Author:     Amerigo Wang <amwang@...hat.com>
AuthorDate: Mon, 17 Aug 2009 05:43:01 -0400
Committer:  Ingo Molnar <mingo@...e.hu>
CommitDate: Mon, 17 Aug 2009 11:47:31 +0200

timers: Drop write permission on /proc/timer_list

/proc/timer_list and /proc/slabinfo are not supposed to be
written, so there should be no write permissions on it.

Signed-off-by: WANG Cong <amwang@...hat.com>
Cc: Pekka Enberg <penberg@...helsinki.fi>
Cc: Vegard Nossum <vegard.nossum@...il.com>
Cc: Eduard - Gabriel Munteanu <eduard.munteanu@...ux360.ro>
Cc: linux-mm@...ck.org
Cc: Christoph Lameter <cl@...ux-foundation.org>
Cc: David Rientjes <rientjes@...gle.com>
Cc: Amerigo Wang <amwang@...hat.com>
Cc: Matt Mackall <mpm@...enic.com>
Cc: Arjan van de Ven <arjan@...ux.intel.com>
LKML-Reference: <20090817094525.6355.88682.sendpatchset@...alhost.localdomain>
Signed-off-by: Ingo Molnar <mingo@...e.hu>


---
 kernel/time/timer_list.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/time/timer_list.c b/kernel/time/timer_list.c
index a999b92..fddd69d 100644
--- a/kernel/time/timer_list.c
+++ b/kernel/time/timer_list.c
@@ -286,7 +286,7 @@ static int __init init_timer_list_procfs(void)
 {
 	struct proc_dir_entry *pe;
 
-	pe = proc_create("timer_list", 0644, NULL, &timer_list_fops);
+	pe = proc_create("timer_list", 0444, NULL, &timer_list_fops);
 	if (!pe)
 		return -ENOMEM;
 	return 0;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ