Skip to content

Commit 71923c7

Browse files
committed
Discouraged usage of set/get_filter_attr
Signed-off-by: rusty-snake <[email protected]>
1 parent 114b4cd commit 71923c7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

libseccomp/src/filter_context.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,9 @@ impl ScmpFilterContext {
449449
/// The seccomp filter attributes are tunable values that affect how the library behaves
450450
/// when generating and loading the seccomp filter into the kernel.
451451
///
452+
/// > **NOTE**: Usage of this function is discouraged.
453+
/// > Use type safe `get_*` functions instead.
454+
///
452455
/// This function corresponds to
453456
/// [`seccomp_attr_get`](https://man7.org/linux/man-pages/man3/seccomp_attr_get.3.html).
454457
///
@@ -725,6 +728,9 @@ impl ScmpFilterContext {
725728
/// The seccomp filter attributes are tunable values that affect how the library behaves
726729
/// when generating and loading the seccomp filter into the kernel.
727730
///
731+
/// > **NOTE**: Usage of this function is discouraged.
732+
/// > Use type safe `set_*` functions instead.
733+
///
728734
/// This function corresponds to
729735
/// [`seccomp_attr_set`](https://man7.org/linux/man-pages/man3/seccomp_attr_set.3.html).
730736
///

0 commit comments

Comments
 (0)