mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
backup: Set owner of {ex,in}clude{,.user} files to "root"
Since these files are static, there is no legitimate reason why they should be owned (hence writable) by "nobody". Also, according to configroot's LFS file, this is the intended behaviour for the *.user files, which is then overwritten by the backup LFS file. Therefore, set the file mode of these statically - configroot does not feature other files in /var/ipfire/backup/ anyway. Signed-off-by: Peter Müller <peter.mueller@ipfire.org> Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -169,7 +169,7 @@ $(TARGET) :
|
||||
# Configroot permissions
|
||||
chown -R nobody:nobody $(CONFIG_ROOT)
|
||||
chown root:root $(CONFIG_ROOT)
|
||||
for i in backup/ *.pl addon-lang/ langs/ ; do \
|
||||
for i in backup/exclude.user backup/include.user *.pl addon-lang/ langs/ ; do \
|
||||
chown -R root:root $(CONFIG_ROOT)/$$i; \
|
||||
done
|
||||
chown -Rv root:root $(CONFIG_ROOT)/*/bin
|
||||
|
||||
Reference in New Issue
Block a user