lucab / caps-rs

A pure-Rust library to work with Linux capabilities
https://docs.rs/caps
Other
83 stars 20 forks source link

Fix the build on powerpc64 and mips64 #34

Closed asomers closed 5 years ago

asomers commented 5 years ago

CAPGET and CAPSET weren't defined on those architectures. I used the syscall numbers reported at https://golang.org/src/syscall/, and tested them using qemu user-mode emulation.

I also defined the constants for s390x, but didn't test them.

Also, I fixed the size of powerpc's CAPGET and CAPSET constants.

Fixes #33