Skip to content

Commit

Permalink
Configure vm.mmap_rnd_bits for test containers
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielius1922 authored and Daniel Adam committed Mar 14, 2024
1 parent d888ea5 commit ec2eb79
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/plgd-device-test-with-cfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ jobs:
with:
submodules: "true"

- name: Configure vm.mmap_rnd_bits for sanitizers
if: contains(inputs.build_args, 'OC_ASAN_ENABLED') || contains(inputs.build_args, 'OC_LSAN_ENABLED') || contains(inputs.build_args, 'OC_TSAN_ENABLED') || contains(inputs.build_args, 'OC_UBSAN_ENABLED')
run: |
sudo sysctl vm.mmap_rnd_bits
sudo sysctl -w vm.mmap_rnd_bits=28
- name: Build cloud server docker image
uses: docker/build-push-action@v5
with:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/plgd-hub-test-with-cfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ jobs:
with:
submodules: "true"

- name: Configure vm.mmap_rnd_bits for sanitizers
if: contains(inputs.build_args, 'OC_ASAN_ENABLED') || contains(inputs.build_args, 'OC_LSAN_ENABLED') || contains(inputs.build_args, 'OC_TSAN_ENABLED') || contains(inputs.build_args, 'OC_UBSAN_ENABLED')
run: |
sudo sysctl vm.mmap_rnd_bits
sudo sysctl -w vm.mmap_rnd_bits=28
- name: Build cloud server docker image
uses: docker/build-push-action@v5
with:
Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ sonar.organization=iotivity-lite
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
#sonar.sources=.
# TODO: Java, Python, HTML, JavaScript and CSS are disabled until a maintainer is found
sonar.exclusions=apps/**,deps/**,docker/**,patches/**,tests/**,tools/**,**/*.java,**/*.py,**/*.html,**/*.js,**/*.css
sonar.exclusions=apps/**,deps/**,patches/**,tests/**,tools/**,**/*.java,**/*.py,**/*.html,**/*.js,**/*.css

# Encoding of the source code. Default is default system encoding
#sonar.sourceEncoding=UTF-8
Expand Down

0 comments on commit ec2eb79

Please sign in to comment.