projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
877a559
)
[SCSI] scsi_transport_iscsi: make priv_sess file writeable only by root
author
Vasiliy Kulikov
<segoon@openwall.com>
Fri, 4 Feb 2011 12:24:14 +0000
(15:24 +0300)
committer
James Bottomley
<James.Bottomley@suse.de>
Wed, 23 Mar 2011 16:35:58 +0000
(11:35 -0500)
Signed-off-by: Vasiliy Kulikov <segoon@openwall.com>
Acked-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/scsi_transport_iscsi.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/scsi_transport_iscsi.c
b/drivers/scsi/scsi_transport_iscsi.c
index b4218390941e1cbd1ee6fd45dfcef8fd82b76cfb..3fd16d7212de2ec2eb5cb9fda7a5da35c4fb77ff 100644
(file)
--- a/
drivers/scsi/scsi_transport_iscsi.c
+++ b/
drivers/scsi/scsi_transport_iscsi.c
@@
-1917,7
+1917,7
@@
store_priv_session_##field(struct device *dev, \
#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_IWU
GO
, \
+static ISCSI_CLASS_ATTR(priv_sess, field, S_IRUGO | S_IWU
SR
, \
show_priv_session_##field, \
store_priv_session_##field)
iscsi_priv_session_rw_attr(recovery_tmo, "%d");