TOMOYO: Return appropriate value to poll().
authorTetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
Wed, 14 Mar 2012 09:27:49 +0000 (18:27 +0900)
committerJames Morris <james.l.morris@oracle.com>
Thu, 15 Mar 2012 01:29:18 +0000 (12:29 +1100)
"struct file_operations"->poll() expects "unsigned int" return value.
All files in /sys/kernel/security/tomoyo/ directory other than
/sys/kernel/security/tomoyo/query and /sys/kernel/security/tomoyo/audit should
return POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM rather than -ENOSYS.
Also, /sys/kernel/security/tomoyo/query and /sys/kernel/security/tomoyo/audit
should return POLLOUT | POLLWRNORM rather than 0 when there is no data to read.

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: James Morris <james.l.morris@oracle.com>

No differences found