summaryrefslogtreecommitdiff
path: root/mkosi.conf.d
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2023-01-26 22:30:27 +0100
committerLennart Poettering <lennart@poettering.net>2023-01-27 10:03:38 +0100
commitb6033b706028a64e9affb79050ced1ad9a4f5b43 (patch)
tree478234569f348324018bf55f2b4cf284009ebbeb /mkosi.conf.d
parent745de3506af8464583ffe6e015d33a683a39e7ca (diff)
downloadsystemd-b6033b706028a64e9affb79050ced1ad9a4f5b43.tar.gz
tmpfiles: automatically create /etc/credstore/ and friends
This adds a tmpfiles.d/ snippet for LoadCredential= style credentials directories in /etc/ and /run/. This is done primarily to ensure that the access modes for the dirs are set up properly, in the most restrictive ways. Specifically these are set to 0000, so that CAP_DAC_OVERRIDE is necessary to enumerate and read the credentials, and being UID=0 is not sufficient to do so. This creates /etc/credstore/, but leaves /run/credstore/ absent if missing, for now. Thinking is: the latter being non-persistent is created by software usually, not manually by users, and hence more likely right. But dunno, we might want to revisit this sooner or later. This is ultimately an exercise to advertise the LoadCredential= concept a bit, and do so in a reasonably secure way, underlining the safety of the concept.
Diffstat (limited to 'mkosi.conf.d')
0 files changed, 0 insertions, 0 deletions