All of lore.kernel.org
 help / color / mirror / Atom feed
* + drivers-scsi-scsi_transport_iscsic-world-writable-sysfs-priv_sess-file.patch added to -mm tree
@ 2011-03-14 22:17 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2011-03-14 22:17 UTC (permalink / raw)
  To: mm-commits; +Cc: segoon, James.Bottomley, michaelc


The patch titled
     drivers/scsi/scsi_transport_iscsi.c: world-writable sysfs priv_sess file
has been added to the -mm tree.  Its filename is
     drivers-scsi-scsi_transport_iscsic-world-writable-sysfs-priv_sess-file.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find
out what to do about this

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: drivers/scsi/scsi_transport_iscsi.c: world-writable sysfs priv_sess file
From: Vasiliy Kulikov <segoon@openwall.com>

Don't allow everybody to change iSCSI settings.

Signed-off-by: Vasiliy Kulikov <segoon@openwall.com>
Cc: Mike Christie <michaelc@cs.wisc.edu>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/scsi/scsi_transport_iscsi.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/scsi/scsi_transport_iscsi.c~drivers-scsi-scsi_transport_iscsic-world-writable-sysfs-priv_sess-file drivers/scsi/scsi_transport_iscsi.c
--- a/drivers/scsi/scsi_transport_iscsi.c~drivers-scsi-scsi_transport_iscsic-world-writable-sysfs-priv_sess-file
+++ a/drivers/scsi/scsi_transport_iscsi.c
@@ -1917,7 +1917,7 @@ store_priv_session_##field(struct device
 #define iscsi_priv_session_rw_attr(field, format)			\
 	iscsi_priv_session_attr_show(field, format)			\
 	iscsi_priv_session_attr_store(field)				\
-static ISCSI_CLASS_ATTR(priv_sess, field, S_IRUGO | S_IWUGO,		\
+static ISCSI_CLASS_ATTR(priv_sess, field, S_IRUGO | S_IWUSR,		\
 			show_priv_session_##field,			\
 			store_priv_session_##field)
 iscsi_priv_session_rw_attr(recovery_tmo, "%d");
_

Patches currently in -mm which might be from segoon@openwall.com are

origin.patch
linux-next.patch
arch-arm-mach-ux500-mbox-db5500c-world-writable-sysfs-fifo-file.patch
drivers-leds-leds-lp5521c-world-writable-sysfs-engine-files.patch
drivers-leds-leds-lp5523c-world-writable-engine-sysfs-files.patch
drivers-misc-ep93xx_pwmc-world-writable-sysfs-files.patch
drivers-rtc-rtc-ds1511c-world-writable-sysfs-nvram-file.patch
aic94xx-world-writable-sysfs-update_bios-file.patch
drivers-scsi-scsi_transport_iscsic-world-writable-sysfs-priv_sess-file.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-03-14 22:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-14 22:17 + drivers-scsi-scsi_transport_iscsic-world-writable-sysfs-priv_sess-file.patch added to -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.