CHROMIUM: seccomp_filter: remove "skip" from copy and add drop helper
authorWill Drewry <wad@chromium.org>
Fri, 19 Aug 2011 20:10:08 +0000 (15:10 -0500)
committerLeann Ogasawara <leann.ogasawara@canonical.com>
Mon, 2 Apr 2012 20:13:24 +0000 (13:13 -0700)
commit0da6d6cd57b1a54adbae3ffa94e10e9e650e467f
tree6006590a600b4d8325abf071dcbf4d1f0fbca56b
parent83b253ee1de0a48d272606bc4877694229732767
CHROMIUM: seccomp_filter: remove "skip" from copy and add drop helper

seccomp_filters_copy() had a skip argument because it used to use a
preallocated array of filters.  Using skip made it easier to drop entries
without reorganizing them prior to copy.  The new use of btrees gets rid of
this complexity and allows a drop to be done relatively painlessly just after
the copy (when needed).

Signed-off-by: Will Drewry <wad@chromium.org>

BUG=chromium-os:14496
TEST=see dep cl

Change-Id: I0dc19998eb1b0463125e7f53f2f1e441246a0d90
Reviewed-on: http://gerrit.chromium.org/gerrit/6326
Reviewed-by: Sonny Rao <sonnyrao@chromium.org>
Tested-by: Will Drewry <wad@chromium.org>
Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>
kernel/seccomp_filter.c