Re: [PATCH -mm 4/5] fault-inject: simplify access check for fail-nth

2017-04-08 Thread Dmitry Vyukov
On Sat, Apr 8, 2017 at 10:25 AM, Akinobu Mita wrote: > 2017-04-08 5:45 GMT+09:00 Dmitry Vyukov : >> On Thu, Apr 6, 2017 at 4:56 PM, Akinobu Mita wrote: >>> The fail-nth file is created with 0666 and the access is permitted if >>> and only if the task is current. >>> >>> This file is owned by the

Re: [PATCH -mm 4/5] fault-inject: simplify access check for fail-nth

2017-04-08 Thread Akinobu Mita
2017-04-08 5:45 GMT+09:00 Dmitry Vyukov : > On Thu, Apr 6, 2017 at 4:56 PM, Akinobu Mita wrote: >> The fail-nth file is created with 0666 and the access is permitted if >> and only if the task is current. >> >> This file is owned by the currnet user. So we can create it with 0644 >> and allow the

Re: [PATCH -mm 4/5] fault-inject: simplify access check for fail-nth

2017-04-07 Thread Dmitry Vyukov
On Thu, Apr 6, 2017 at 4:56 PM, Akinobu Mita wrote: > The fail-nth file is created with 0666 and the access is permitted if > and only if the task is current. > > This file is owned by the currnet user. So we can create it with 0644 > and allow the owner to write it. This enables to watch the st

Re: [PATCH -mm 4/5] fault-inject: simplify access check for fail-nth

2017-04-07 Thread Dmitry Vyukov
On Thu, Apr 6, 2017 at 4:56 PM, Akinobu Mita wrote: > The fail-nth file is created with 0666 and the access is permitted if > and only if the task is current. > > This file is owned by the currnet user. So we can create it with 0644 > and allow the owner to write it. This enables to watch the st

[PATCH -mm 4/5] fault-inject: simplify access check for fail-nth

2017-04-06 Thread Akinobu Mita
The fail-nth file is created with 0666 and the access is permitted if and only if the task is current. This file is owned by the currnet user. So we can create it with 0644 and allow the owner to write it. This enables to watch the status of task->fail_nth from another processes. Cc: Dmitry Vyu