Misc. updates

This commit is contained in:
Tad 2018-01-19 03:14:25 -05:00
parent 47ae3584a7
commit 1e794178db
10 changed files with 17 additions and 19 deletions

10
LICENSE
View File

@ -1,20 +1,18 @@
Copyright (c) 2017 Spot Communications, Inc. Copyright (c) 2017-2018 Spot Communications, Inc.
Below are the license mappings for all of the files found in this repository. All attempts have been made to ensure accuracy of the corresponding license files. If you've found an issue please file an issue or pull request. Below are the license mappings for all of the files found in this repository. All attempts have been made to ensure accuracy of the corresponding license files. If you've found an issue please file an issue or pull request.
Changelogs - GPLv3 Changelogs - GPLv3
Manifests - GPLv3 Manifests - GPLv3
Misc - GPLv3 Misc - GPLv3
Patches/DivestOS_Wallpapers - Unsplash License https://unsplash.com/license Patches/Android - Apache-2.0
Patches/LineageOS-11.0/
android_kernel_* - GPLv2
[Everything Else] - Apache-2.0
Patches/LineageOS-14.1/ Patches/LineageOS-14.1/
android_packages_apps_FDroid* - GPLv2 android_packages_apps_FDroid* - GPLv2
android_packages_apps_Silence - GPLv2 android_packages_apps_Silence - GPLv2
android_kernel_* - GPLv2 android_kernel_* - GPLv2
[Everything Else] - Apache-2.0 [Everything Else] - Apache-2.0
Patches/Linux_CVEs - GPLv2 Patches/Linux - GPLv2
Patches/Wallpapers - Unsplash License https://unsplash.com/license
Scripts - GPLv3 Scripts - GPLv3

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
#DivestOS: A privacy oriented Android distribution #DivestOS: A privacy oriented Android distribution
#Copyright (c) 2017 Spot Communications, Inc. #Copyright (c) 2017-2018 Spot Communications, Inc.
# #
#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

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
#DivestOS: A privacy oriented Android distribution #DivestOS: A privacy oriented Android distribution
#Copyright (c) 2017 Spot Communications, Inc. #Copyright (c) 2017-2018 Spot Communications, Inc.
# #
#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

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
#DivestOS: A privacy oriented Android distribution #DivestOS: A privacy oriented Android distribution
#Copyright (c) 2017 Spot Communications, Inc. #Copyright (c) 2017-2018 Spot Communications, Inc.
# #
#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

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
#DivestOS: A privacy oriented Android distribution #DivestOS: A privacy oriented Android distribution
#Copyright (c) 2017 Spot Communications, Inc. #Copyright (c) 2017-2018 Spot Communications, Inc.
# #
#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
@ -163,7 +163,7 @@ hardenDefconfig() {
#Enable supported options #Enable supported options
#Disabled: CONFIG_DEBUG_SG (bootloops - https://patchwork.kernel.org/patch/8989981) #Disabled: CONFIG_DEBUG_SG (bootloops - https://patchwork.kernel.org/patch/8989981)
declare -a optionsYes=("CONFIG_ARM64_SW_TTBR0_PAN" "CONFIG_BUG_ON_DATA_CORRUPTION" "CONFIG_BUG" "CONFIG_CC_STACKPROTECTOR_STRONG" "CONFIG_CC_STACKPROTECTOR" "CONFIG_CPU_SW_DOMAIN_PAN" "CONFIG_DEBUG_CREDENTIALS" "CONFIG_DEBUG_KERNEL" "CONFIG_DEBUG_LIST" "CONFIG_DEBUG_NOTIFIERS" "CONFIG_DEBUG_RODATA" "CONFIG_DEBUG_WX" "CONFIG_FORTIFY_SOURCE" "CONFIG_GCC_PLUGIN_LATENT_ENTROPY" "CONFIG_GCC_PLUGIN_RANDSTRUCT" "CONFIG_GCC_PLUGIN_STRUCTLEAK_BYREF_ALL" "CONFIG_GCC_PLUGIN_STRUCTLEAK" "CONFIG_GCC_PLUGINS" "CONFIG_HARDENED_USERCOPY" "CONFIG_IO_STRICT_DEVMEM" "CONFIG_LEGACY_VSYSCALL_NONE" "CONFIG_PAGE_POISONING_NO_SANITY" "CONFIG_PAGE_POISONING" "CONFIG_PAGE_POISONING_ZERO" "CONFIG_PANIC_ON_OOPS" "CONFIG_RANDOMIZE_BASE" "CONFIG_REFCOUNT_FULL" "CONFIG_SCHED_STACK_END_CHECK" "CONFIG_SECCOMP_FILTER" "CONFIG_SECCOMP" "CONFIG_SECURITY" "CONFIG_SECURITY_YAMA" "CONFIG_SECURITY_YAMA_STACKED" "CONFIG_SLAB_FREELIST_RANDOM" "CONFIG_SLAB_HARDENED" "CONFIG_SLUB_DEBUG" "CONFIG_STRICT_DEVMEM" "CONFIG_STRICT_KERNEL_RWX" "CONFIG_STRICT_MEMORY_RWX" "CONFIG_SYN_COOKIES" "CONFIG_VMAP_STACK" "CONFIG_SECURITY_PERF_EVENTS_RESTRICT" "CONFIG_PAGE_TABLE_ISOLATION" "CONFIG_UNMAP_KERNEL_AT_EL0" "CONFIG_KAISER") declare -a optionsYes=("CONFIG_ARM64_SW_TTBR0_PAN" "CONFIG_BUG" "CONFIG_BUG_ON_DATA_CORRUPTION" "CONFIG_CC_STACKPROTECTOR" "CONFIG_CC_STACKPROTECTOR_STRONG" "CONFIG_CPU_SW_DOMAIN_PAN" "CONFIG_DEBUG_CREDENTIALS" "CONFIG_DEBUG_KERNEL" "CONFIG_DEBUG_LIST" "CONFIG_DEBUG_NOTIFIERS" "CONFIG_DEBUG_RODATA" "CONFIG_DEBUG_WX" "CONFIG_FORTIFY_SOURCE" "CONFIG_GCC_PLUGIN_LATENT_ENTROPY" "CONFIG_GCC_PLUGIN_RANDSTRUCT" "CONFIG_GCC_PLUGINS" "CONFIG_GCC_PLUGIN_STRUCTLEAK" "CONFIG_GCC_PLUGIN_STRUCTLEAK_BYREF_ALL" "CONFIG_HARDENED_USERCOPY" "CONFIG_IO_STRICT_DEVMEM" "CONFIG_KAISER" "CONFIG_LEGACY_VSYSCALL_NONE" "CONFIG_PAGE_POISONING" "CONFIG_PAGE_POISONING_NO_SANITY" "CONFIG_PAGE_POISONING_ZERO" "CONFIG_PAGE_TABLE_ISOLATION" "CONFIG_PANIC_ON_OOPS" "CONFIG_RANDOMIZE_BASE" "CONFIG_REFCOUNT_FULL" "CONFIG_RETPOLINE" "CONFIG_SCHED_STACK_END_CHECK" "CONFIG_SECCOMP" "CONFIG_SECCOMP_FILTER" "CONFIG_SECURITY" "CONFIG_SECURITY_PERF_EVENTS_RESTRICT" "CONFIG_SECURITY_YAMA" "CONFIG_SECURITY_YAMA_STACKED" "CONFIG_SLAB_FREELIST_RANDOM" "CONFIG_SLAB_HARDENED" "CONFIG_SLUB_DEBUG" "CONFIG_STRICT_DEVMEM" "CONFIG_STRICT_KERNEL_RWX" "CONFIG_STRICT_MEMORY_RWX" "CONFIG_SYN_COOKIES" "CONFIG_UNMAP_KERNEL_AT_EL0" "CONFIG_VMAP_STACK")
for option in "${optionsYes[@]}" for option in "${optionsYes[@]}"
do do
sed -i 's/# '$option' is not set/'$option'=y/' $defconfigPath &>/dev/null || true; sed -i 's/# '$option' is not set/'$option'=y/' $defconfigPath &>/dev/null || true;
@ -175,7 +175,7 @@ hardenDefconfig() {
fi; fi;
done done
#Disable supported options #Disable supported options
declare -a optionsNo=("CONFIG_SECURITY_SELINUX_DISABLE" "CONFIG_PROC_KCORE" "CONFIG_OABI_COMPAT" "CONFIG_KEXEC" "CONFIG_LEGACY_PTYS" "CONFIG_HIBERNATION" "CONFIG_INET_DIAG" "CONFIG_DEVKMEM" "CONFIG_DEVMEM" "CONFIG_COMPAT_BRK" "CONFIG_COMPAT_VDSO" "CONFIG_BINFMT_MISC" "CONFIG_ACPI_CUSTOM_METHOD" "CONFIG_MSM_BUSPM_DEV" "CONFIG_CP_ACCESS64") declare -a optionsNo=("CONFIG_ACPI_CUSTOM_METHOD" "CONFIG_BINFMT_MISC" "CONFIG_COMPAT_BRK" "CONFIG_COMPAT_VDSO" "CONFIG_CP_ACCESS64" "CONFIG_DEVKMEM" "CONFIG_DEVMEM" "CONFIG_DEVPORT" "CONFIG_HIBERNATION" "CONFIG_INET_DIAG" "CONFIG_KEXEC" "CONFIG_LEGACY_PTYS" "CONFIG_MSM_BUSPM_DEV" "CONFIG_OABI_COMPAT" "CONFIG_PROC_KCORE" "CONFIG_PROC_VMCORE" "CONFIG_SECURITY_SELINUX_DISABLE" "CONFIG_SLAB_MERGE_DEFAULT")
for option in "${optionsNo[@]}" for option in "${optionsNo[@]}"
do do
sed -i 's/'$option'=y/# '$option' is not set/' $defconfigPath &>/dev/null || true; sed -i 's/'$option'=y/# '$option' is not set/' $defconfigPath &>/dev/null || true;

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
#DivestOS: A privacy oriented Android distribution #DivestOS: A privacy oriented Android distribution
#Copyright (c) 2017 Spot Communications, Inc. #Copyright (c) 2017-2018 Spot Communications, Inc.
# #
#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

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
#DivestOS: A privacy oriented Android distribution #DivestOS: A privacy oriented Android distribution
#Copyright (c) 2017 Spot Communications, Inc. #Copyright (c) 2017-2018 Spot Communications, Inc.
# #
#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
@ -78,8 +78,8 @@ patch -p1 < $patches"android_kernel_common_msm8992/0005-Overclock.patch"
patch -p1 < $patches"android_kernel_common_msm8992/0006-Overclock.patch" patch -p1 < $patches"android_kernel_common_msm8992/0006-Overclock.patch"
patch -p1 < $patches"android_kernel_common_msm8992/0007-Overclock.patch" patch -p1 < $patches"android_kernel_common_msm8992/0007-Overclock.patch"
enter "kernel/moto/shamu" #enter "kernel/moto/shamu"
patch -p1 < $patches"android_kernel_moto_shamu/0001-OverUnderClock.patch" #300Mhz -> 35Mhz, 2.64Ghz -> 2.88Ghz =+0.96Ghz XXX: Untested! #patch -p1 < $patches"android_kernel_moto_shamu/0001-OverUnderClock.patch" #300Mhz -> 35Mhz, 2.64Ghz -> 2.88Ghz =+0.96Ghz XXX: Panics
enter "kernel/nextbit/msm8992" enter "kernel/nextbit/msm8992"
patch -p1 < $patches"android_kernel_common_msm8992/0001-Overclock.patch" patch -p1 < $patches"android_kernel_common_msm8992/0001-Overclock.patch"

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
#DivestOS: A privacy oriented Android distribution #DivestOS: A privacy oriented Android distribution
#Copyright (c) 2015-2017 Spot Communications, Inc. #Copyright (c) 2015-2018 Spot Communications, Inc.
# #
#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

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
#DivestOS: A privacy oriented Android distribution #DivestOS: A privacy oriented Android distribution
#Copyright (c) 2017 Spot Communications, Inc. #Copyright (c) 2017-2018 Spot Communications, Inc.
# #
#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

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
#DivestOS: A privacy oriented Android distribution #DivestOS: A privacy oriented Android distribution
#Copyright (c) 2017 Spot Communications, Inc. #Copyright (c) 2017-2018 Spot Communications, Inc.
# #
#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