mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
configroot: prevent any Perl file within /var/ipfire/ from being owned by nobody
Signed-off-by: Peter Müller <peter.mueller@ipfire.org> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
839451c527
commit
55f0bafb7b
@@ -1,7 +1,7 @@
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
# #
|
# #
|
||||||
# IPFire.org - A linux based firewall #
|
# IPFire.org - A linux based firewall #
|
||||||
# Copyright (C) 2007-2018 IPFire Team <info@ipfire.org> #
|
# Copyright (C) 2007-2021 IPFire Team <info@ipfire.org> #
|
||||||
# #
|
# #
|
||||||
# This program is free software: you can redistribute it and/or modify #
|
# This program is free software: you can redistribute it and/or modify #
|
||||||
# it under the terms of the GNU General Public License as published by #
|
# it under the terms of the GNU General Public License as published by #
|
||||||
@@ -169,7 +169,7 @@ $(TARGET) :
|
|||||||
# Configroot permissions
|
# Configroot permissions
|
||||||
chown -R nobody:nobody $(CONFIG_ROOT)
|
chown -R nobody:nobody $(CONFIG_ROOT)
|
||||||
chown root:root $(CONFIG_ROOT)
|
chown root:root $(CONFIG_ROOT)
|
||||||
for i in backup/ header.pl general-functions.pl graphs.pl lang.pl addon-lang/ langs/ ; do \
|
for i in backup/ *.pl addon-lang/ langs/ ; do \
|
||||||
chown -R root:root $(CONFIG_ROOT)/$$i; \
|
chown -R root:root $(CONFIG_ROOT)/$$i; \
|
||||||
done
|
done
|
||||||
chown -Rv root:root $(CONFIG_ROOT)/*/bin
|
chown -Rv root:root $(CONFIG_ROOT)/*/bin
|
||||||
|
|||||||
Reference in New Issue
Block a user