Revert "zram: convert remaining CLASS_ATTR() to CLASS_ATTR_RO()"
authorWade Mealing <wmealing@redhat.com>
Wed, 17 Jun 2020 11:49:47 +0000 (13:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Jul 2020 15:29:05 +0000 (17:29 +0200)
commit853eab68afc80f59f36bbdeb715e5c88c501e680
treeb5862e8fbeba81cfede5b8db87141846a583b71f
parente852c2c251ed9c23ae6e3efebc5ec49adb504207
Revert "zram: convert remaining CLASS_ATTR() to CLASS_ATTR_RO()"

Turns out that the permissions for 0400 really are what we want here,
otherwise any user can read from this file.

[fixed formatting, added changelog, and made attribute static - gregkh]

Reported-by: Wade Mealing <wmealing@redhat.com>
Cc: stable <stable@vger.kernel.org>
Fixes: f40609d1591f ("zram: convert remaining CLASS_ATTR() to CLASS_ATTR_RO()")
Link: https://bugzilla.redhat.com/show_bug.cgi?id=1847832
Reviewed-by: Steffen Maier <maier@linux.ibm.com>
Acked-by: Minchan Kim <minchan@kernel.org>
Link: https://lore.kernel.org/r/20200617114946.GA2131650@kroah.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/block/zram/zram_drv.c