1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-09 01:18:19 +03:00

shared: reject empty attachment path

This commit is contained in:
Frantisek Sumsal 2023-05-02 22:37:17 +02:00
parent 1febf60f9d
commit 740831076c
2 changed files with 14 additions and 0 deletions

View File

@ -467,6 +467,9 @@ int bpf_program_deserialize_attachment(const char *v, FDSet *fds, BPFProgram **b
return at;
/* The rest is the path */
if (isempty(v))
return -EINVAL;
l = cunescape(v, 0, &unescaped);
if (l < 0)
return l;

View File

@ -0,0 +1,11 @@
curr :er
82967574637335/dprunning
run-stedm\x2dsysctl.service.mount
s4002
te-ewal=0
stat25 0
ip-bpf-egress-installed=1651 4116038
condi/dpad-nriv-j0
userspmath-pci\x2d0000:00:01.1\x2d0
ip-bpf-egress-installed=1651 recvmsg6