mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
Ensure /var/ipfire/updatexlrator/updxlrator-lib.pl is not writable by "nobody"
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
This commit is contained in:
@@ -1,16 +1,23 @@
|
|||||||
#!/usr/bin/perl
|
#!/usr/bin/perl
|
||||||
#
|
###############################################################################
|
||||||
# This code is distributed under the terms of the GPL
|
# #
|
||||||
#
|
# IPFire.org - A linux based firewall #
|
||||||
# (c) 2006-2008 marco.s - http://update-accelerator.advproxy.net
|
# Copyright (C) 2007-2022 IPFire Team <info@ipfire.org> #
|
||||||
#
|
# #
|
||||||
# Portions (c) 2008 by dotzball - http://www.blockouttraffic.de
|
# 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 #
|
||||||
# dotzball 2008-05-27:
|
# the Free Software Foundation, either version 3 of the License, or #
|
||||||
# move functions from all local files to one library file
|
# (at your option) any later version. #
|
||||||
#
|
# #
|
||||||
# $Id: updxlrator-lib.pl,v 1.1 2008/11/29 00:00:00 marco.s Exp $
|
# This program is distributed in the hope that it will be useful, #
|
||||||
#
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
|
||||||
|
# GNU General Public License for more details. #
|
||||||
|
# #
|
||||||
|
# You should have received a copy of the GNU General Public License #
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>. #
|
||||||
|
# #
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
package UPDXLT;
|
package UPDXLT;
|
||||||
|
|
||||||
|
|||||||
@@ -170,6 +170,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
|||||||
|
|
||||||
chown -R nobody:nobody /var/ipfire/updatexlrator
|
chown -R nobody:nobody /var/ipfire/updatexlrator
|
||||||
chown -R root:root /var/ipfire/updatexlrator/bin
|
chown -R root:root /var/ipfire/updatexlrator/bin
|
||||||
|
chown root:root /var/ipfire/updatexlrator/updxlrator-lib.pl
|
||||||
chown nobody.squid /var/updatecache
|
chown nobody.squid /var/updatecache
|
||||||
chown nobody.squid /var/updatecache/download
|
chown nobody.squid /var/updatecache/download
|
||||||
chown nobody.squid /var/updatecache/metadata
|
chown nobody.squid /var/updatecache/metadata
|
||||||
|
|||||||
Reference in New Issue
Block a user