linux-stable/security/smack
Rafal Krypa 10289b0f73 Smack: parse multiple rules per write to load2, up to PAGE_SIZE-1 bytes
Smack interface for loading rules has always parsed only single rule from
data written to it. This requires user program to call one write() per
each rule it wants to load.
This change makes it possible to write multiple rules, separated by new
line character. Smack will load at most PAGE_SIZE-1 characters and properly
return number of processed bytes. In case when user buffer is larger, it
will be additionally truncated. All characters after last \n will not get
parsed to avoid partial rule near input buffer boundary.

Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
2013-08-12 11:51:40 -07:00
..
Kconfig Smack: use select not depends in Kconfig 2012-12-14 10:57:10 -08:00
Makefile
smack.h Smack: network label match fix 2013-08-01 20:04:02 -07:00
smack_access.c security: smack: add a hash table to quicken smk_find_entry() 2013-08-01 16:55:20 -07:00
smack_lsm.c Smack: network label match fix 2013-08-01 20:04:02 -07:00
smackfs.c Smack: parse multiple rules per write to load2, up to PAGE_SIZE-1 bytes 2013-08-12 11:51:40 -07:00