aboutsummaryrefslogtreecommitdiffstats
path: root/security/apparmor/include/audit.h
diff options
context:
space:
mode:
authorJohn Johansen <john.johansen@canonical.com>2017-05-26 17:23:23 -0700
committerJohn Johansen <john.johansen@canonical.com>2017-06-10 17:11:29 -0700
commit1dea3b41e84c5923173fe654dcb758a5cb4a46e5 (patch)
treeea55c5132e374a11ad1f88c871bfb5a3878d6885 /security/apparmor/include/audit.h
parentapparmor: add label data availability to the feature set (diff)
downloadlinux-dev-1dea3b41e84c5923173fe654dcb758a5cb4a46e5.tar.xz
linux-dev-1dea3b41e84c5923173fe654dcb758a5cb4a46e5.zip
apparmor: speed up transactional queries
The simple_transaction interface is slow. It requires 4 syscalls (open, write, read, close) per query and shares a single lock for each queries. So replace its use with a compatible in multi_transaction interface. It allows for a faster 2 syscall pattern per query. After an initial open, an arbitrary number of writes and reads can be issued. Each write will reset the query with new data that can be read. Reads do not clear the data, and can be issued multiple times, and used with seek, until a new write is performed which will reset the data available and the seek position. Note: this keeps the single lock design, if needed moving to a per file lock will have to come later. Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'security/apparmor/include/audit.h')
0 files changed, 0 insertions, 0 deletions