summaryrefslogtreecommitdiffstats
path: root/test/fuzz/fuzz-nspawn-settings
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:49:52 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:49:52 +0000
commit55944e5e40b1be2afc4855d8d2baf4b73d1876b5 (patch)
tree33f869f55a1b149e9b7c2b7e201867ca5dd52992 /test/fuzz/fuzz-nspawn-settings
parentInitial commit. (diff)
downloadsystemd-55944e5e40b1be2afc4855d8d2baf4b73d1876b5.tar.xz
systemd-55944e5e40b1be2afc4855d8d2baf4b73d1876b5.zip
Adding upstream version 255.4.upstream/255.4
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test/fuzz/fuzz-nspawn-settings')
-rw-r--r--test/fuzz/fuzz-nspawn-settings/basic-config65
-rw-r--r--test/fuzz/fuzz-nspawn-settings/leak-bind-mountbin0 -> 133 bytes
-rw-r--r--test/fuzz/fuzz-nspawn-settings/oss-fuzz-136912
3 files changed, 67 insertions, 0 deletions
diff --git a/test/fuzz/fuzz-nspawn-settings/basic-config b/test/fuzz/fuzz-nspawn-settings/basic-config
new file mode 100644
index 0000000..abc8b20
--- /dev/null
+++ b/test/fuzz/fuzz-nspawn-settings/basic-config
@@ -0,0 +1,65 @@
+[Exec]
+Boot=off
+ProcessTwo=off
+Ephemeral=yes
+Parameters=/sbin/init -x=1
+Environment=THIS=that
+User=user
+WorkingDirectory=/cwd
+PivotRoot=/newroot
+Capability=CAP_NET
+DropCapability=CAP_ADMIN
+AmbientCapability=CAP_SETUID
+NoNewPrivileges=yes
+KillSignal=SIGTERM
+Personality=shy
+MachineID=edbfea3309ba41ea83e2318c58a8d498
+PrivateUsers=1:2
+NotifyReady=no
+SystemCallFilters=write
+LimitCPU=10:20
+LimitFSIZE=5:10
+LimitDATA=100:200
+LimitSTACK=1024:2048
+LimitCore=0:1024
+LimitRSS=1024:4096
+LimitNOFILE=5:15
+LimitAS=2048:4096
+LimitNPROC=32:64
+LimitMEMLOCK=128:256
+LimitLOCKS=100:300
+LimitSIGPENDING=1:3
+LimitMSGQUEUE=16:32
+LimitNICE=4:5
+LimitRTPRIO=0:1
+LimitRTTIME=2:3
+OOMScoreAdjust=50
+CPUAffinity=1,2,3-4
+Hostname=foo.bar
+ResolvConf=copy-host
+Timezone=bind
+LinkJournal=try-guest
+SuppressSync=yes
+
+[Files]
+ReadOnly=no
+Volatile=no
+Bind=/bindthis
+BindReadOnly=/bindthisro
+BindUser=testuser
+TemporaryFileSystem=/thisismytmpfs:rw
+Inaccessible=yes
+Overlay=/thisisanoverlay:/thisisanoverlaytoo
+OverlayReadOnly=/foo:/bar:/baz:/merged
+PrivateUsersOwnership=no
+
+[Network]
+Private=off
+VirtualEthernet=yes
+VirtualEthernetExtra=veth1:veth2
+Interface=eth1 enp0s1
+MACVLAN=eno1 eno2
+IPVLAN=eno3 enp2s124
+Bridge=bridge123 bridge125
+Zone=myzone
+Port=1234 156 -1
diff --git a/test/fuzz/fuzz-nspawn-settings/leak-bind-mount b/test/fuzz/fuzz-nspawn-settings/leak-bind-mount
new file mode 100644
index 0000000..7be2d2c
--- /dev/null
+++ b/test/fuzz/fuzz-nspawn-settings/leak-bind-mount
Binary files differ
diff --git a/test/fuzz/fuzz-nspawn-settings/oss-fuzz-13691 b/test/fuzz/fuzz-nspawn-settings/oss-fuzz-13691
new file mode 100644
index 0000000..51f46e3
--- /dev/null
+++ b/test/fuzz/fuzz-nspawn-settings/oss-fuzz-13691
@@ -0,0 +1,2 @@
+[Files]
+Overlay=/:: \ No newline at end of file