kernel-fxtec-pro1x/security/tomoyo
Tetsuo Handa f23571e866 TOMOYO: Copy directly to userspace buffer.
When userspace program reads policy from /sys/kernel/security/tomoyo/
interface, TOMOYO uses line buffered mode. A line has at least one word.

Commit 006dacc "TOMOYO: Support longer pathname." changed a word's max length
from 4000 bytes to max kmalloc()able bytes. By that commit, a line's max length
changed from 8192 bytes to more than max kmalloc()able bytes.

Max number of words in a line remains finite. This patch changes the way of
buffering so that all words in a line are firstly directly copied to userspace
buffer as much as possible and are secondly queued for next read request.
Words queued are guaranteed to be valid until /sys/kernel/security/tomoyo/
interface is close()d.

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: James Morris <jmorris@namei.org>
2010-08-02 15:34:45 +10:00
..
common.c TOMOYO: Copy directly to userspace buffer. 2010-08-02 15:34:45 +10:00
common.h TOMOYO: Copy directly to userspace buffer. 2010-08-02 15:34:45 +10:00
domain.c TOMOYO: Use common code for domain transition control. 2010-08-02 15:34:43 +10:00
file.c TOMOYO: Aggregate reader functions. 2010-08-02 15:34:41 +10:00
gc.c TOMOYO: Use common code for domain transition control. 2010-08-02 15:34:43 +10:00
group.c TOMOYO: Merge path_group and number_group. 2010-08-02 15:34:42 +10:00
Kconfig Kconfig and Makefile 2009-02-12 15:19:00 +11:00
load_policy.c TOMOYO: Split files into some pieces. 2010-08-02 15:33:39 +10:00
Makefile TOMOYO: Merge path_group and number_group. 2010-08-02 15:34:42 +10:00
memory.c TOMOYO: Copy directly to userspace buffer. 2010-08-02 15:34:45 +10:00
mount.c TOMOYO: Loosen parameter check for mount operation. 2010-08-02 15:34:34 +10:00
realpath.c TOMOYO: Remove alias keyword. 2010-08-02 15:34:42 +10:00
securityfs_if.c TOMOYO: Split files into some pieces. 2010-08-02 15:33:39 +10:00
tomoyo.c TOMOYO: Rename symbols. 2010-08-02 15:34:33 +10:00
util.c TOMOYO: Use common code for domain transition control. 2010-08-02 15:34:43 +10:00