DivestOS/Scripts/Common/Patch_CVE.sh

32 lines
1.1 KiB
Bash
Raw Normal View History

#!/bin/bash
2017-11-05 15:58:01 +00:00
#DivestOS: A privacy oriented Android distribution
2017-10-31 17:24:35 +00:00
#Copyright (c) 2017 Spot Communications, Inc.
2017-11-05 15:58:01 +00:00
#
#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
#the Free Software Foundation, either version 3 of the License, or
#(at your option) any later version.
#
#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 <https://www.gnu.org/licenses/>.
#Attempts to patch kernels to be more secure
2017-10-29 18:23:02 +00:00
#Is this the best way to do it? No. Is it the proper way to do it? No. Do I wish device maintainers would do it? Yes. Is it better then nothing? YES!
2018-04-23 12:59:18 +00:00
echo "Patching CVEs...";
2018-04-23 12:59:18 +00:00
cd $base;
2017-10-29 06:43:38 +00:00
for patcher in $cveScripts/*.sh; do
echo "Running " $patcher;
source $patcher;
done;
2018-04-23 12:59:18 +00:00
cd $base;
echo "Patched CVEs!";