Skip to content

Commit 230a5fd

Browse files
SJrXSteve Ramage
andauthored
fix: improve validation of seccomp requiring options (Resolves #329) (#331)
Co-authored-by: Steve Ramage <[email protected]>
1 parent 3c03587 commit 230a5fd

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ buildSrc/.gradle
88
buildSrc/build
99
systemd-build/build
1010
.intellijPlatform
11+
.kotlin

src/test/kotlin/net/sjrx/intellij/plugins/systemdunitfiles/semanticdata/optionvalues/OptionValueTest.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ class OptionValueTest : AbstractUnitFileTest() {
3535

3636
println("Missing:$totalMissingValidators")
3737
println("Found:$totalFoundValidators")
38-
if (totalMissingValidators >= 500) {
39-
assertEquals("Number of missing validators is too high at ${totalMissingValidators} vs. found ${totalFoundValidators}", sortedList, "")
38+
val allowed = 519
39+
if (totalMissingValidators >= allowed) {
40+
assertEquals("Number of missing validators is too high at ${totalMissingValidators} > $allowed vs. found ${totalFoundValidators}", sortedList, "")
4041
}
4142

4243
if (totalFoundValidators == 0) {

systemd-build/systemd-build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ echo "Git Pull" && \
44
git reset --hard HEAD &&\
55
git pull && \
66
find . -type f -name meson.build -exec sed -i 's/install_emptydir(\(.*\), install_tag : .*)/install_emptydir(\1)/g' '{}' '+' && \
7+
echo "Patching config.h" && \
8+
sed -i -E "s/HAVE_SECCOMP 0/HAVE_SECCOMP 1/g" ./build/config.h && \
79
echo "Run jinja2" && \
810
python3 ./tools/meson-render-jinja2.py ./build/config.h ./src/core/load-fragment-gperf.gperf.in load-fragment-gperf.gperf && \
911
echo "Copy file(s)" && \

0 commit comments

Comments
 (0)