Commit 9bcd61d
committed
sepolgen: Support named xperms
The `allowxperm` et. al. directives take a magical integer for one of
the fields, which hinders readability. This commit adds support for
basic names for a number or group of numbers.
Notably, this does not support recursive definition of names, as that
would require a larger grammar re-write to avoid parsing conflicts.
Signed-off-by: Chris Lindee <chris.lindee+github@gmail.com>1 parent 5798cf4 commit 9bcd61d
2 files changed
+34
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
| 352 | + | |
352 | 353 | | |
353 | 354 | | |
354 | 355 | | |
| |||
502 | 503 | | |
503 | 504 | | |
504 | 505 | | |
505 | | - | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
506 | 515 | | |
507 | 516 | | |
508 | 517 | | |
| |||
1049 | 1058 | | |
1050 | 1059 | | |
1051 | 1060 | | |
| 1061 | + | |
1052 | 1062 | | |
1053 | | - | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
1054 | 1068 | | |
1055 | 1069 | | |
1056 | 1070 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
416 | 434 | | |
417 | 435 | | |
418 | 436 | | |
| |||
0 commit comments