Commit ccae19c
committed
Merge tag 'selinux-pr-20240513' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux
Pull selinux updates from Paul Moore:
- Attempt to pre-allocate the SELinux status page so it doesn't appear
to userspace that we are skipping SELinux policy sequence numbers
- Reject invalid SELinux policy bitmaps with an error at policy load
time
- Consistently use the same type, u32, for ebitmap offsets
- Improve the "symhash" hash function for better distribution on common
policies
- Correct a number of printk format specifiers in the ebitmap code
- Improved error checking in sel_write_load()
- Ensure we have a proper return code in the
filename_trans_read_helper_compat() function
- Make better use of the current_sid() helper function
- Allow for more hash table statistics when debugging is enabled
- Migrate from printk_ratelimit() to pr_warn_ratelimited()
- Miscellaneous cleanups and tweaks to selinux_lsm_getattr()
- More consitification work in the conditional policy space
* tag 'selinux-pr-20240513' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux:
selinux: constify source policy in cond_policydb_dup()
selinux: avoid printk_ratelimit()
selinux: pre-allocate the status page
selinux: clarify return code in filename_trans_read_helper_compat()
selinux: use u32 as bit position type in ebitmap code
selinux: improve symtab string hashing
selinux: dump statistics for more hash tables
selinux: make more use of current_sid()
selinux: update numeric format specifiers for ebitmaps
selinux: improve error checking in sel_write_load()
selinux: cleanup selinux_lsm_getattr()
selinux: reject invalid ebitmapsFile tree
12 files changed
+146
-126
lines changed- security/selinux
- ss
12 files changed
+146
-126
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2961 | 2961 | | |
2962 | 2962 | | |
2963 | 2963 | | |
2964 | | - | |
| 2964 | + | |
2965 | 2965 | | |
2966 | 2966 | | |
2967 | 2967 | | |
| |||
2990 | 2990 | | |
2991 | 2991 | | |
2992 | 2992 | | |
2993 | | - | |
| 2993 | + | |
2994 | 2994 | | |
2995 | 2995 | | |
2996 | 2996 | | |
| |||
3005 | 3005 | | |
3006 | 3006 | | |
3007 | 3007 | | |
3008 | | - | |
| 3008 | + | |
3009 | 3009 | | |
3010 | 3010 | | |
3011 | 3011 | | |
| |||
3063 | 3063 | | |
3064 | 3064 | | |
3065 | 3065 | | |
3066 | | - | |
3067 | 3066 | | |
3068 | 3067 | | |
3069 | | - | |
| 3068 | + | |
3070 | 3069 | | |
3071 | 3070 | | |
3072 | 3071 | | |
3073 | | - | |
3074 | 3072 | | |
3075 | 3073 | | |
3076 | 3074 | | |
| |||
3094 | 3092 | | |
3095 | 3093 | | |
3096 | 3094 | | |
3097 | | - | |
3098 | 3095 | | |
3099 | 3096 | | |
3100 | 3097 | | |
3101 | 3098 | | |
3102 | | - | |
| 3099 | + | |
3103 | 3100 | | |
3104 | 3101 | | |
3105 | 3102 | | |
| |||
3116 | 3113 | | |
3117 | 3114 | | |
3118 | 3115 | | |
3119 | | - | |
3120 | 3116 | | |
3121 | 3117 | | |
3122 | 3118 | | |
| |||
5564 | 5560 | | |
5565 | 5561 | | |
5566 | 5562 | | |
5567 | | - | |
5568 | | - | |
5569 | | - | |
5570 | | - | |
5571 | | - | |
5572 | | - | |
5573 | | - | |
| 5563 | + | |
5574 | 5564 | | |
5575 | 5565 | | |
5576 | 5566 | | |
| |||
6348 | 6338 | | |
6349 | 6339 | | |
6350 | 6340 | | |
6351 | | - | |
6352 | | - | |
| 6341 | + | |
6353 | 6342 | | |
6354 | | - | |
| 6343 | + | |
| 6344 | + | |
6355 | 6345 | | |
6356 | 6346 | | |
6357 | | - | |
6358 | | - | |
6359 | | - | |
6360 | | - | |
| 6347 | + | |
| 6348 | + | |
| 6349 | + | |
6361 | 6350 | | |
6362 | 6351 | | |
6363 | | - | |
| 6352 | + | |
6364 | 6353 | | |
6365 | | - | |
6366 | 6354 | | |
6367 | 6355 | | |
6368 | | - | |
| 6356 | + | |
6369 | 6357 | | |
6370 | 6358 | | |
6371 | | - | |
| 6359 | + | |
6372 | 6360 | | |
6373 | 6361 | | |
6374 | | - | |
| 6362 | + | |
6375 | 6363 | | |
6376 | 6364 | | |
6377 | | - | |
| 6365 | + | |
6378 | 6366 | | |
6379 | 6367 | | |
6380 | | - | |
| 6368 | + | |
6381 | 6369 | | |
6382 | 6370 | | |
6383 | | - | |
| 6371 | + | |
6384 | 6372 | | |
6385 | 6373 | | |
6386 | 6374 | | |
6387 | | - | |
| 6375 | + | |
6388 | 6376 | | |
6389 | 6377 | | |
6390 | 6378 | | |
6391 | | - | |
| 6379 | + | |
| 6380 | + | |
6392 | 6381 | | |
| 6382 | + | |
6393 | 6383 | | |
6394 | 6384 | | |
6395 | 6385 | | |
6396 | 6386 | | |
6397 | 6387 | | |
6398 | 6388 | | |
6399 | | - | |
| 6389 | + | |
6400 | 6390 | | |
6401 | 6391 | | |
6402 | 6392 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
571 | 571 | | |
572 | 572 | | |
573 | 573 | | |
574 | | - | |
| 574 | + | |
575 | 575 | | |
576 | 576 | | |
577 | 577 | | |
578 | 578 | | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
579 | 586 | | |
580 | 587 | | |
581 | 588 | | |
582 | 589 | | |
583 | 590 | | |
584 | 591 | | |
585 | 592 | | |
586 | | - | |
587 | | - | |
588 | | - | |
589 | | - | |
590 | | - | |
591 | | - | |
592 | 593 | | |
593 | | - | |
| 594 | + | |
| 595 | + | |
594 | 596 | | |
595 | | - | |
596 | | - | |
597 | | - | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
598 | 600 | | |
| 601 | + | |
599 | 602 | | |
600 | 603 | | |
601 | 604 | | |
602 | 605 | | |
603 | 606 | | |
604 | 607 | | |
605 | | - | |
| 608 | + | |
606 | 609 | | |
607 | 610 | | |
608 | 611 | | |
| |||
611 | 614 | | |
612 | 615 | | |
613 | 616 | | |
614 | | - | |
615 | 617 | | |
616 | | - | |
617 | 618 | | |
618 | 619 | | |
619 | 620 | | |
620 | 621 | | |
| 622 | + | |
621 | 623 | | |
622 | 624 | | |
623 | 625 | | |
| |||
2161 | 2163 | | |
2162 | 2164 | | |
2163 | 2165 | | |
| 2166 | + | |
| 2167 | + | |
| 2168 | + | |
| 2169 | + | |
| 2170 | + | |
| 2171 | + | |
2164 | 2172 | | |
2165 | 2173 | | |
2166 | 2174 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
172 | 175 | | |
173 | 176 | | |
174 | 177 | | |
| |||
600 | 603 | | |
601 | 604 | | |
602 | 605 | | |
603 | | - | |
| 606 | + | |
| 607 | + | |
604 | 608 | | |
605 | 609 | | |
606 | 610 | | |
| |||
623 | 627 | | |
624 | 628 | | |
625 | 629 | | |
626 | | - | |
| 630 | + | |
627 | 631 | | |
628 | 632 | | |
629 | 633 | | |
| |||
640 | 644 | | |
641 | 645 | | |
642 | 646 | | |
643 | | - | |
| 647 | + | |
644 | 648 | | |
645 | 649 | | |
646 | 650 | | |
| |||
680 | 684 | | |
681 | 685 | | |
682 | 686 | | |
683 | | - | |
684 | | - | |
| 687 | + | |
| 688 | + | |
685 | 689 | | |
686 | 690 | | |
687 | 691 | | |
| |||
707 | 711 | | |
708 | 712 | | |
709 | 713 | | |
710 | | - | |
| 714 | + | |
711 | 715 | | |
712 | 716 | | |
713 | 717 | | |
| |||
740 | 744 | | |
741 | 745 | | |
742 | 746 | | |
743 | | - | |
| 747 | + | |
744 | 748 | | |
745 | 749 | | |
746 | 750 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
0 commit comments