aboutsummaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorRafal Krypa <r.krypa@samsung.com>2013-08-09 11:47:07 +0200
committerCasey Schaufler <casey@schaufler-ca.com>2013-08-12 11:51:40 -0700
commit10289b0f738e8b301969f2288c4942455f1b1e59 (patch)
tree511a13ddeaa36bcdc3b966ade00e104d42edc78c /ipc
parent677264e8fb73ea35a508700e19ce76c527576d1c (diff)
downloadkernel_replicant_linux-10289b0f738e8b301969f2288c4942455f1b1e59.tar.gz
kernel_replicant_linux-10289b0f738e8b301969f2288c4942455f1b1e59.tar.bz2
kernel_replicant_linux-10289b0f738e8b301969f2288c4942455f1b1e59.zip
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>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions