File tree Expand file tree Collapse file tree 6 files changed +12
-12
lines changed
tests/integration_tests/build Expand file tree Collapse file tree 6 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -266,7 +266,7 @@ curl --unix-socket /tmp/firecracker.socket -i \
266266 -d ' {
267267 "snapshot_type": "Full",
268268 "snapshot_path": "./snapshot_file",
269- "mem_file_path": "./mem_file",
269+ "mem_file_path": "./mem_file"
270270 }'
271271```
272272
Original file line number Diff line number Diff line change @@ -518,7 +518,7 @@ mod tests {
518518 ) )
519519 }
520520
521- // Test case: the buffer descriptor cannot fit all the data advertised by the the
521+ // Test case: the buffer descriptor cannot fit all the data advertised by the
522522 // packet header `len` field.
523523 {
524524 create_context ! ( test_ctx, handler_ctx) ;
Original file line number Diff line number Diff line change @@ -815,7 +815,7 @@ impl Connection {
815815 /// * `mss_reserved` - How much (if anything) of the MSS value has been already used at the
816816 /// lower layers (by IP options, for example). This will be zero most of the time.
817817 /// * `payload_src` - References a buffer which contains data to send, and also specifies the
818- /// sequence number associated with the first byte from that that buffer.
818+ /// sequence number associated with the first byte from that buffer.
819819 /// * `now` - An opaque timestamp representing the current moment in time.
820820 ///
821821 /// [`MAX_WINDOW_SIZE`]: ../constant.MAX_WINDOW_SIZE.html
Original file line number Diff line number Diff line change 55import platform
66from pathlib import Path
77
8- import pytest
9-
108from framework import utils
119from framework .static_analysis import (
1210 determine_unneeded_seccomp_rules ,
1513)
1614
1715
18- @pytest .mark .skipif (
19- platform .machine () != "x86_64" ,
20- reason = "aarch64 nightly toolchain does not support flags needed to compile analyzable binary yet" ,
21- )
2216def test_redundant_seccomp_rules ():
2317 """Test that fails if static analysis determines redundant seccomp rules"""
2418 arch = platform .processor ()
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --profile minimal --default-too
113113 && rustup target add x86_64-unknown-linux-musl \
114114 && rustup target add aarch64-unknown-linux-musl \
115115 && rustup component add llvm-tools-preview clippy rustfmt \
116- && cargo install --locked cargo-audit cargo-deny@0.16.1 grcov cargo-sort cargo-afl \
116+ && cargo install --locked cargo-audit cargo-deny grcov cargo-sort cargo-afl \
117117 && cargo install --locked kani-verifier && cargo kani setup \
118118 \
119119 && NIGHTLY_TOOLCHAIN=$(rustup toolchain list | grep nightly | tr -d '\n ' ) \
@@ -149,12 +149,18 @@ RUN cd /usr/include/$ARCH-linux-musl \
149149 && ln -s ../asm-generic asm-generic
150150
151151# Install static version of libseccomp
152- #
152+ # We need to compile from source because
153+ # libseccomp provided by the distribution is not
154+ # compiled with musl-gcc and we need this
155+ # for our musl builds.
156+ # We specify the tag in order to have a fixed version
157+ # of the library.
153158RUN apt-get update \
154159 && apt-get -y install \
155160 libtool gperf \
156161 && git clone https://github.com/seccomp/libseccomp /tmp/libseccomp \
157162 && cd /tmp/libseccomp \
163+ && git checkout tags/v2.5.5 \
158164 && ./autogen.sh \
159165 && CC="musl-gcc -static" ./configure --enable-static=yes --enable-shared=false \
160166 && make install \
Original file line number Diff line number Diff line change 6868DEVCTR_IMAGE_NO_TAG=" public.ecr.aws/firecracker/fcuvm"
6969
7070# Development container tag
71- DEVCTR_IMAGE_TAG=${DEVCTR_IMAGE_TAG:- v76 }
71+ DEVCTR_IMAGE_TAG=${DEVCTR_IMAGE_TAG:- v77 }
7272
7373# Development container image (name:tag)
7474# This should be updated whenever we upgrade the development container.
You can’t perform that action at this time.
0 commit comments