Commit 81fd5b7
dist: Fully lock the
Use the `u!` notation to fully lock the system user.
It is highly unlikely that the `tss` user should ever be logged into
(e.g. via SSH).
This sysusers.d feature has been released with systemd 257 on 2024-12-10.
To support older systemd versions, we select a tpm2-tss.conf based on the
systemd version and copy it to the build directory. With PKG_CHECK_MODULES
we select the correct version during cross compilation. Avoid potential
confusion by ensuring the generated file name is distinct from the input.
Related-to: https://github.com/systemd/systemd/releases/tag/v257
Signed-off-by: David Runge <dave@sleepmap.de>
Signed-off-by: Moritz Buhl <moritz.buhl@infineon.com>tss system user if supported1 parent f61bfe8 commit 81fd5b7
5 files changed
Lines changed: 23 additions & 3 deletions
File tree
- dist/sysusers.d
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
716 | 716 | | |
717 | 717 | | |
718 | 718 | | |
719 | | - | |
| 719 | + | |
| 720 | + | |
720 | 721 | | |
721 | 722 | | |
722 | 723 | | |
723 | 724 | | |
724 | 725 | | |
725 | 726 | | |
726 | 727 | | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
727 | 736 | | |
728 | 737 | | |
729 | 738 | | |
| |||
759 | 768 | | |
760 | 769 | | |
761 | 770 | | |
762 | | - | |
| 771 | + | |
| 772 | + | |
763 | 773 | | |
764 | 774 | | |
765 | 775 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
655 | 655 | | |
656 | 656 | | |
657 | 657 | | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
658 | 666 | | |
659 | 667 | | |
660 | 668 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
File renamed without changes.
0 commit comments