Re: [PATCH] kernel: ksysfs: add __ro_after_init to bin_attribute structure

2017-02-13 Thread Kees Cook
On Sat, Feb 11, 2017 at 11:06 AM, Bhumika Goyal wrote: > The object notes_attr of type bin_attribute is not modified after > getting initailized by ksysfs_init. Apart from initialization in > ksysfs_init it is also passed as an argument to the function > sysfs_create_bin_file

Re: [PATCH] kernel: ksysfs: add __ro_after_init to bin_attribute structure

2017-02-13 Thread Kees Cook
On Sat, Feb 11, 2017 at 11:06 AM, Bhumika Goyal wrote: > The object notes_attr of type bin_attribute is not modified after > getting initailized by ksysfs_init. Apart from initialization in > ksysfs_init it is also passed as an argument to the function > sysfs_create_bin_file but this argument is

[PATCH] kernel: ksysfs: add __ro_after_init to bin_attribute structure

2017-02-11 Thread Bhumika Goyal
The object notes_attr of type bin_attribute is not modified after getting initailized by ksysfs_init. Apart from initialization in ksysfs_init it is also passed as an argument to the function sysfs_create_bin_file but this argument is of type const. Therefore, add __ro_after_init to its

[PATCH] kernel: ksysfs: add __ro_after_init to bin_attribute structure

2017-02-11 Thread Bhumika Goyal
The object notes_attr of type bin_attribute is not modified after getting initailized by ksysfs_init. Apart from initialization in ksysfs_init it is also passed as an argument to the function sysfs_create_bin_file but this argument is of type const. Therefore, add __ro_after_init to its