Giter Site home page Giter Site logo

selinux's People

Contributors

koutheir avatar michel-slm avatar ratmice avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

selinux's Issues

Test is loading code from a function pointer

This line looks like it doesn't do what it was intended to do:

template::<super::Log>(unsafe { *(libc::abort as *const _) });

What this will do is convert the address of libc::abort into a *const fn ..., and then load from that address. IOW this loads the first 8 bytes of the text of that function, and then treats them as a function pointer which is passed to template. Probably what this meant to do is transmute the function pointer: template::<super::Log>(transmute(libc::abort as fn() -> !)).

(via Zulip)

Build on Debian fails with "doc alias attribute expects a string:"

Trying to package selinux for Debian, I am getting:

     Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=selinux CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>> CARGO_PKG_AUTHORS='Koutheir Attouchi <[email protected]>' CARGO_PKG_DESCRIPTION='Flexible Mandatory Access Control for Linux' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=selinux CARGO_PKG_REPOSITORY='https://github.com/koutheir/selinux' CARGO_PKG_VERSION=0.2.2 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=2 CARGO_PKG_VERSION_PATCH=2 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/<<PKGBUILDDIR>>/target/debug/deps:/usr/lib' rustc --crate-name selinux --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -Cembed-bitcode=no -C debuginfo=2 -C metadata=82c54164d593785f -C extra-filename=-82c54164d593785f --out-dir /<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -C incremental=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/incremental -L dependency=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/<<PKGBUILDDIR>>/target/debug/deps --extern bitflags=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/libbitflags-3f47185136d2e6bc.rmeta --extern libc=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/liblibc-c7d93ddab2220a9b.rmeta --extern once_cell=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/libonce_cell-453a2446d2f99dbf.rmeta --extern reference_counted_singleton=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/libreference_counted_singleton-3f025b9280c502cf.rmeta --extern selinux_sys=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/libselinux_sys-d5eb7bdc26ae0b3d.rmeta --extern thiserror=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/libthiserror-3632fe4357e3cad5.rmeta -C debuginfo=2 --cap-lints warn -C linker=x86_64-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /<<PKGBUILDDIR>>=/usr/share/cargo/registry/selinux-0.2.2 -L native=/usr/lib/x86_64-linux-gnu`

error: doc alias attribute expects a string: #[doc(alias = "0")]
    --> src/lib.rs:1846:7
     |
1846 | #[doc(alias("is_selinux_enabled", "is_selinux_mls_enabled"))]
     |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

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.