Re: [PATCH] sysfs: tightened sysfs permission checks

2015-05-01 Thread Rusty Russell
Gobinda Charan Maji writes: > There were some inconsistency in restriction to VERIFY_OCTAL_PERMISSIONS(). > Previously the test was "User perms >= group perms >= other perms". The > permission field of User, Group or Other consists of three bits. LSB is > EXECUTE permission, MSB is READ permission

[PATCH] sysfs: tightened sysfs permission checks

2015-05-01 Thread Gobinda Charan Maji
There were some inconsistency in restriction to VERIFY_OCTAL_PERMISSIONS(). Previously the test was "User perms >= group perms >= other perms". The permission field of User, Group or Other consists of three bits. LSB is EXECUTE permission, MSB is READ permission and the middle bit is WRITE permissi