Commit 7183abc
audit: maintain an lsm_prop in audit_context
Replace the secid value stored in struct audit_context with a struct
lsm_prop. Change the code that uses this value to accommodate the
change. security_audit_rule_match() expects a lsm_prop, so existing
scaffolding can be removed. A call to security_secid_to_secctx()
is changed to security_lsmprop_to_secctx(). The call to
security_ipc_getsecid() is scaffolded.
A new function lsmprop_is_set() is introduced to identify whether
an lsm_prop contains a non-zero value.
Signed-off-by: Casey Schaufler <[email protected]>
[PM: subject line tweak, fix lsmprop_is_set() typo]
Signed-off-by: Paul Moore <[email protected]>1 parent 6f2f724 commit 7183abc
3 files changed
+34
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
294 | 307 | | |
295 | 308 | | |
296 | 309 | | |
| |||
552 | 565 | | |
553 | 566 | | |
554 | 567 | | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
555 | 579 | | |
556 | 580 | | |
557 | 581 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
160 | 161 | | |
161 | 162 | | |
162 | 163 | | |
163 | | - | |
| 164 | + | |
164 | 165 | | |
165 | 166 | | |
166 | 167 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
724 | 724 | | |
725 | 725 | | |
726 | 726 | | |
727 | | - | |
728 | | - | |
729 | | - | |
| 727 | + | |
730 | 728 | | |
731 | 729 | | |
732 | 730 | | |
| |||
1394 | 1392 | | |
1395 | 1393 | | |
1396 | 1394 | | |
1397 | | - | |
1398 | | - | |
1399 | | - | |
| 1395 | + | |
1400 | 1396 | | |
1401 | 1397 | | |
1402 | 1398 | | |
1403 | 1399 | | |
1404 | | - | |
| 1400 | + | |
1405 | 1401 | | |
1406 | 1402 | | |
1407 | 1403 | | |
1408 | | - | |
1409 | | - | |
| 1404 | + | |
| 1405 | + | |
1410 | 1406 | | |
1411 | 1407 | | |
1412 | 1408 | | |
| |||
1426 | 1422 | | |
1427 | 1423 | | |
1428 | 1424 | | |
1429 | | - | |
| 1425 | + | |
1430 | 1426 | | |
1431 | 1427 | | |
1432 | 1428 | | |
| |||
2642 | 2638 | | |
2643 | 2639 | | |
2644 | 2640 | | |
2645 | | - | |
| 2641 | + | |
| 2642 | + | |
2646 | 2643 | | |
2647 | 2644 | | |
2648 | 2645 | | |
| |||
0 commit comments