Commit a569c2e
committed
cgroup, systemd: improved "same bpf" check
It appears that some architectures other than x86_64 (ppc64 and s390) do
modify in-kernel bpf program while it's being loaded into the kernel.
On those platforms, the check for bpf being the same (added in commit
edf6678) doesn't work, and the attempt to run "crun update" with
the same device access list fails with "updating device access list not
supported when using BPFProgram" error.
A workaround is to actually load the new program into the kernel, read
it back, and compare.
Signed-off-by: Kir Kolyshkin <[email protected]>1 parent 1042e3f commit a569c2e
1 file changed
+36
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1431 | 1431 | | |
1432 | 1432 | | |
1433 | 1433 | | |
| 1434 | + | |
| 1435 | + | |
| 1436 | + | |
| 1437 | + | |
1434 | 1438 | | |
1435 | 1439 | | |
1436 | 1440 | | |
| |||
1452 | 1456 | | |
1453 | 1457 | | |
1454 | 1458 | | |
| 1459 | + | |
| 1460 | + | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
1455 | 1491 | | |
1456 | 1492 | | |
1457 | 1493 | | |
1458 | | - | |
1459 | | - | |
1460 | | - | |
1461 | | - | |
1462 | 1494 | | |
1463 | 1495 | | |
1464 | 1496 | | |
| |||
0 commit comments