koutheir / selinux Goto Github PK
View Code? Open in Web Editor NEWMoved: https://codeberg.org/koutheir/selinux
Home Page: https://codeberg.org/koutheir/selinux
License: MIT License
Moved: https://codeberg.org/koutheir/selinux
Home Page: https://codeberg.org/koutheir/selinux
License: MIT License
This line looks like it doesn't do what it was intended to do:
selinux/selinux/src/call_back/tests.rs
Line 31 in aa0fe91
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)
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"))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.