Commit 8af43b6
selinux: support wildcard network interface names
Add support for wildcard matching of network interface names. This is
useful for auto-generated interfaces, for example podman creates network
interfaces for containers with the naming scheme podman0, podman1,
podman2, ...
To maintain backward compatibility guard this feature with a new policy
capability 'netif_wildcard'.
Netifcon definitions are compared against in the order given by the
policy, so userspace tools should sort them in a reasonable order.
Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>1 parent 6ae0042 commit 8af43b6
4 files changed
Lines changed: 22 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
205 | 211 | | |
206 | 212 | | |
207 | 213 | | |
| |||
301 | 307 | | |
302 | 308 | | |
303 | 309 | | |
304 | | - | |
| 310 | + | |
305 | 311 | | |
306 | 312 | | |
307 | 313 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
2572 | 2573 | | |
2573 | 2574 | | |
2574 | 2575 | | |
2575 | | - | |
| 2576 | + | |
2576 | 2577 | | |
2577 | 2578 | | |
2578 | 2579 | | |
2579 | 2580 | | |
2580 | 2581 | | |
2581 | 2582 | | |
| 2583 | + | |
2582 | 2584 | | |
2583 | 2585 | | |
2584 | 2586 | | |
2585 | 2587 | | |
2586 | 2588 | | |
2587 | 2589 | | |
| 2590 | + | |
| 2591 | + | |
2588 | 2592 | | |
2589 | 2593 | | |
2590 | 2594 | | |
| |||
2594 | 2598 | | |
2595 | 2599 | | |
2596 | 2600 | | |
2597 | | - | |
2598 | | - | |
| 2601 | + | |
| 2602 | + | |
| 2603 | + | |
| 2604 | + | |
| 2605 | + | |
| 2606 | + | |
| 2607 | + | |
| 2608 | + | |
2599 | 2609 | | |
2600 | 2610 | | |
2601 | 2611 | | |
| |||
0 commit comments