Commit 523f3c80bc41d663d5b35c0cd6ce0fad7f3e7188
Committed by
James Bottomley
1 parent
877a55979c
Exists in
master
and in
7 other branches
[SCSI] scsi_transport_iscsi: make priv_sess file writeable only by root
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>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
drivers/scsi/scsi_transport_iscsi.c
... | ... | @@ -1917,7 +1917,7 @@ |
1917 | 1917 | #define iscsi_priv_session_rw_attr(field, format) \ |
1918 | 1918 | iscsi_priv_session_attr_show(field, format) \ |
1919 | 1919 | iscsi_priv_session_attr_store(field) \ |
1920 | -static ISCSI_CLASS_ATTR(priv_sess, field, S_IRUGO | S_IWUGO, \ | |
1920 | +static ISCSI_CLASS_ATTR(priv_sess, field, S_IRUGO | S_IWUSR, \ | |
1921 | 1921 | show_priv_session_##field, \ |
1922 | 1922 | store_priv_session_##field) |
1923 | 1923 | iscsi_priv_session_rw_attr(recovery_tmo, "%d"); |