Skip to content

ScmpActErrno and ScmpActTrace always rerurn same value #305

@sat0ken

Description

@sat0ken

ScmpActErrno always returns 0x00050001, but the correct value should be the specified error code and a masked value of 0x00050000.

LinuxSeccompAction::ScmpActErrno => 0x00050001,

libseccomp-rs is a correct implementation, so we need to follow it.

https://github.com/libseccomp-rs/libseccomp-rs/blob/fdc61a5bb5b80bb7da190a264472aeb4f287a27a/libseccomp-sys/src/lib.rs#L244-L249

Additionally, same as ScmpActTrace.
ScmpActTrace always returns 0x7ff00001, but the correct value should be the specified value and a masked value of 0x7ff00000.

LinuxSeccompAction::ScmpActTrace => 0x7ff00001,

libseccomp-rs is a correct implementation, so we need to follow it.

https://github.com/libseccomp-rs/libseccomp-rs/blob/fdc61a5bb5b80bb7da190a264472aeb4f287a27a/libseccomp-sys/src/lib.rs#L250-L255

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions