Giter Site home page Giter Site logo

Comments (11)

rusty-snake avatar rusty-snake commented on August 16, 2024 1
wip changelog
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d779c24..93305e9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,16 +7,31 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 
 ## Unreleased
 ### Added
-- `ScmpArgCompare::new` is now a `const fn`.
+- `ScmpVersion::current()` as rustifyed replacement for `get_library_version()`.
+- `ScmpFilterContext::get_no_new_privs_bit()` to query the state of the nnp bit.
+- `ScmpArch::native()` as rustifyed replacement for `get_native_arch()`.
+- `ScmpFilterContext::as_ptr()`
+- `scmp_cmp!`
 
 ### Changed
+- `ScmpArgCompare::new` is now a `const fn`.
 - `ScmpAction::Errno` now holds an `i32` to make `ScmpAction::Errno(libc::EPERM)`
   work without casting.
 - `ScmpAction::Trace` now holds an `u16` since you can not use any more bits anyway.
+- `set_filter_attr` takes `&mut self` rather than `&self`.
+- `export_{pfc,bpf}` take a `&mut` reference instead of consuming ownership.
+- `export_{pfc,bpf}` take all types which implement `AsRawFd`.
+- masked equal
+
+### Deprecated
+- `get_library_version()` use `ScmpVersion::current()` instead.
+- `get_native_arch()` use `ScmpArch::native()` instead.
 
 ### Removed
 - `Clone` on `ScmpFilterContext` because it cauesed double-free/use-after-free
    in safe code.
+- `ScmpData` (was unused)
+- `.to_native()` functions
 
 ### Security
 - Fixed double-free/use-after-free when cloning `ScmpFilterContext`.

from libseccomp-rs.

rusty-snake avatar rusty-snake commented on August 16, 2024 1

When #45 and #41 (work is done, just waiting on #47) are merged/closed, I think we have all API breaking changes done and can focus on releasing 0.2.0.

from libseccomp-rs.

ManaSugi avatar ManaSugi commented on August 16, 2024

All works done. Thank you for your great contributions!! @rusty-snake

from libseccomp-rs.

ManaSugi avatar ManaSugi commented on August 16, 2024

I cannot see notify module in docs.
When I generated the docs using cargo doc --no-deps in local, I was able to see the notify doc. I'm not sure...

from libseccomp-rs.

rusty-snake avatar rusty-snake commented on August 16, 2024
#[cfg(libseccomp_v2_5)]
pub mod notify;

from libseccomp-rs.

ManaSugi avatar ManaSugi commented on August 16, 2024

Dose cargo doc ignore cfg?

from libseccomp-rs.

rusty-snake avatar rusty-snake commented on August 16, 2024

The docs.rs environment doesn't have libseccomp (>=2.5) while you locally have. I guess.

from libseccomp-rs.

rusty-snake avatar rusty-snake commented on August 16, 2024

Probably we need to #[cfg(any(libseccomp_v2_5, docsrs))] or similar.

https://docs.rs/about/builds

from libseccomp-rs.

ManaSugi avatar ManaSugi commented on August 16, 2024

Thank you for the information. I see.... should we fix it and release v0.2.1 or v3.0.0 right now?

from libseccomp-rs.

rusty-snake avatar rusty-snake commented on August 16, 2024

I think a 0.2.1 - fix docs.rs build release is fine.

from libseccomp-rs.

ManaSugi avatar ManaSugi commented on August 16, 2024

Sure, I'll create a PR. sorry for inconvenience.

from libseccomp-rs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.