From: Tetsuo Handa Date: Wed, 14 Mar 2012 09:27:49 +0000 (+0900) Subject: TOMOYO: Return appropriate value to poll(). X-Git-Tag: v3.4-rc1~165^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6041e8346f2165679c2184cab60db768d6a26a1d;p=pandora-kernel.git TOMOYO: Return appropriate value to poll(). "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 Signed-off-by: James Morris --- Reading git-diff-tree failed