Re: [PATCH v4 1/3] security: Refactor LSM hooks into an array and enum

2018-03-07 Thread Sargun Dhillon
On Wed, Mar 7, 2018 at 12:23 PM, Casey Schaufler wrote: > On 3/7/2018 11:18 AM, Sargun Dhillon wrote: >> On Wed, Mar 7, 2018 at 9:45 AM, Casey Schaufler >> wrote: >>> On 3/6/2018 11:23 PM, Sargun Dhillon wrote: This commit should have no functional change. It changes the security hook

Re: [PATCH v4 1/3] security: Refactor LSM hooks into an array and enum

2018-03-07 Thread Casey Schaufler
On 3/7/2018 11:18 AM, Sargun Dhillon wrote: > On Wed, Mar 7, 2018 at 9:45 AM, Casey Schaufler > wrote: >> On 3/6/2018 11:23 PM, Sargun Dhillon wrote: >>> This commit should have no functional change. It changes the security hook >>> list heads struct into an array. Additionally, it exposes all of

Re: [PATCH v4 1/3] security: Refactor LSM hooks into an array and enum

2018-03-07 Thread Sargun Dhillon
On Wed, Mar 7, 2018 at 9:45 AM, Casey Schaufler wrote: > On 3/6/2018 11:23 PM, Sargun Dhillon wrote: >> This commit should have no functional change. It changes the security hook >> list heads struct into an array. Additionally, it exposes all of the hooks >> via an enum. This loses memory layout

Re: [PATCH v4 1/3] security: Refactor LSM hooks into an array and enum

2018-03-07 Thread Casey Schaufler
On 3/6/2018 11:23 PM, Sargun Dhillon wrote: > This commit should have no functional change. It changes the security hook > list heads struct into an array. Additionally, it exposes all of the hooks > via an enum. This loses memory layout randomization as the enum is not > randomized. Please explai