]> git.ipfire.org Git - thirdparty/systemd.git/commit
chattr-util: generalize chattr manipulation for files with secrets from journalctl
authorLennart Poettering <lennart@poettering.net>
Mon, 21 Jun 2021 09:17:10 +0000 (11:17 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 8 Jul 2021 07:29:48 +0000 (09:29 +0200)
commitc1631ee124a30abfb9c71e2a1534b8afffc3b6a7
tree4fe9ef14fe914074a39ab6d129e704f6fca62af6
parent91358db9dcb752f7ff5aac6638c6c7462d75001a
chattr-util: generalize chattr manipulation for files with secrets from journalctl

This moves the code for setting chattr file attributes appropriate for
"secrets" files from journalctl into generic chattr-util.c code so that
we can use it elsewhere.

Also, let's reuse the "bitwise" logic already implemented in the chattr
code, instead of doing it again.
src/basic/chattr-util.c
src/basic/chattr-util.h
src/journal/journalctl.c
src/tmpfiles/tmpfiles.c