Commit 24e456a
committed
added selinu support
Commit adds SELinux support to dropbear by:
- adding a new '--enable-selinux' option to configure; by default, it
is disabled. This option defines an ENABLE_SELINUX preprocessor
macro.
- mapping the unix username to the SELinux user which is stored in a
new 'user_sid' attribute in the AuthState object
- relabeling the controlling pty
- setting the context for the next execve() call to the user_sid
Operations above will not be done when SELinux is disabled. Failures will
generate LOG_ERR messages and in enforcing SELinux mode, dropbear_exit()
will be called.
Signed-off-by: Enrico Scholz <[email protected]>1 parent 7e03e4d commit 24e456a
1 file changed
+75
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
41 | 45 | | |
42 | 46 | | |
43 | 47 | | |
| |||
556 | 560 | | |
557 | 561 | | |
558 | 562 | | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
559 | 605 | | |
560 | 606 | | |
561 | 607 | | |
| |||
604 | 650 | | |
605 | 651 | | |
606 | 652 | | |
| 653 | + | |
| 654 | + | |
607 | 655 | | |
608 | 656 | | |
609 | 657 | | |
| |||
726 | 774 | | |
727 | 775 | | |
728 | 776 | | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
729 | 802 | | |
730 | 803 | | |
731 | 804 | | |
| |||
932 | 1005 | | |
933 | 1006 | | |
934 | 1007 | | |
| 1008 | + | |
| 1009 | + | |
935 | 1010 | | |
936 | 1011 | | |
937 | 1012 | | |
| |||
0 commit comments