Commit Graph

6466 Commits

Author SHA1 Message Date
DL6ER 6fa6a206fc
Merge branch 'development-v6' into fix/domainNeeded 2024-05-30 09:10:52 +02:00
Dominik 23d94763a5
Merge pull request #1962 from pi-hole/new/clang
Add Clang compiler support and update project to C17 standard
2024-05-29 19:19:26 +02:00
DL6ER 40eee1ac9c
Addres spellchecker complaints
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-25 09:57:46 +02:00
DL6ER dc204a41b0
Use v2.6 CI containers and nightly for the devcontainer
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-25 09:54:37 +02:00
Dominik 825a14a69b
Merge pull request #1974 from pi-hole/update/sqlite_3.46.0
Update embedded SQLite3 to 3.46.0
2024-05-23 21:51:42 +02:00
DL6ER 3afd9f0d41
Update embedded SQLite3 to 3.46.0
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-23 20:53:09 +02:00
DL6ER 782178c6c1
Run tests with attached debugger
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-22 20:37:55 +02:00
DL6ER 62413141ff
Only one builder is allowed to push the API documentation
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-22 20:19:32 +02:00
Dominik 0f48ea89ed
Merge pull request #1973 from pi-hole/fix/database_aux_files
Fix chown of aux. database files
2024-05-21 23:40:05 +02:00
DL6ER be9fe875f6
Always try to chown auxiliary database files, not only when chown of the database files itself failed
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-21 19:59:51 +02:00
DL6ER e10d2a52e1
Clang-built binaries are expected to be dynamic
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-21 19:58:19 +02:00
DL6ER 1a72da3616
Do not build static exectuable in clang test to avoid LTO linking issue
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-20 22:10:46 +02:00
DL6ER 4a70b5989c
Use new-clang ftl-build containers
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-20 20:46:18 +02:00
DL6ER 212d0f02a9
Use ftl-build:nightly for devcontainer
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-20 11:39:44 +02:00
DL6ER 8c5da713f8
Add clang build
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-20 11:05:15 +02:00
DL6ER c957f78209
Add Visual Studio Code CMake configuration to get ccompile-time definition detection working
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-20 10:31:06 +02:00
DL6ER bfbe309b42
Update build containers to ftl-build v2.5.1
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-20 10:24:58 +02:00
Dominik 2a1ae1183c
Merge pull request #1972 from pi-hole/fix/fork_pr
actions: fix fork PR runs
2024-05-20 10:21:09 +02:00
DL6ER f88d96a884
Skip attestation and deployment steps for fork-based PRs having no access to secrets
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-19 09:14:46 +02:00
DL6ER 25ab7b726c
Print GLIBC version in pihole-FTL -vv and not during compile time as "#pragma message" is not supported by older clang versions
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-19 09:05:44 +02:00
DL6ER 67fdf2915b
Fix conditional for readline inclusion in LUA code
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-19 08:56:14 +02:00
DL6ER d579417901
Ensure target lua_scripts is built before target ftl_lua depending on it
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-19 07:27:06 +02:00
DL6ER 20173437ad
Merge branch 'development-v6' into new/clang 2024-05-18 20:38:56 +02:00
Dominik 524308314f
Merge pull request #1970 from pi-hole/fix/wal-ownership
Ensure we also change ownership of the WAL database files
2024-05-18 19:10:53 +02:00
Dominik 139facdd5e
Merge pull request #1969 from pi-hole/fix/mbedtls
Fix compiling without mbedTLS
2024-05-18 18:34:41 +02:00
DL6ER e3346ff641
Ensure we also change ownership of the WAL database files
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-18 17:29:24 +02:00
DL6ER 4b2cb98825
Enforce minimum version of mbedTLS (3.5.0)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-18 17:13:55 +02:00
DL6ER e286d4b147
Properly guard X.509 functions to allow compiling FTL without mbedTLS library being available, also improve how definitions are done in src/CMakeLists.txt and reduce instruction-duplication on the way
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-18 17:11:42 +02:00
Dominik 6de3d81d46
Merge pull request #1968 from pi-hole/dependabot-github_actions-development-v6-github_action-dependencies-edf2abb101
Bump actions/checkout from 4.1.5 to 4.1.6 in the github_action-dependencies group
2024-05-18 16:54:58 +02:00
dependabot[bot] 6fed81a916
Bump actions/checkout in the github_action-dependencies group
Bumps the github_action-dependencies group with 1 update: [actions/checkout](https://github.com/actions/checkout).


Updates `actions/checkout` from 4.1.5 to 4.1.6
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4.1.5...v4.1.6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github_action-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-18 10:36:18 +00:00
DL6ER ab373bc580
Merge branch 'special/CI_development' into new/clang
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-18 12:04:32 +02:00
DL6ER 313cb2353f
Update C standard to C17
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-18 11:39:23 +02:00
DL6ER 9fbd40e05f
Avoid ambigious else
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-18 11:10:47 +02:00
DL6ER f894910326
Remove explicit static instructions - binaries compiled on alpine will balways e linked statically
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-18 10:59:40 +02:00
DL6ER 9446b2526a
Merge branch 'development-v6' into special/CI_development 2024-05-18 10:46:43 +02:00
Dominik a07810695c
Merge pull request #1965 from pi-hole/fix/dhcp_names
Update DNS records after pruning DHCP leases
2024-05-18 09:44:22 +02:00
DL6ER ebc195af69
Update custom dnsmasq version
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-18 09:14:27 +02:00
Erik Karlsson 98407e3a58
Update DNS records after pruning DHCP leases
Not doing so can result in a use after free since the name for DHCP
derived DNS records is represented as a pointer into the DHCP lease
table. Update will only happen when necessary since lease_update_dns
tests internally on dns_dirty and the force argument is zero.

Signed-off-by: Erik Karlsson <erik.karlsson@iopsys.eu>
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-18 09:13:54 +02:00
Dominik 95b1dc1c72
Merge pull request #1964 from pi-hole/new/artifact_attestations
Add artifact attestation
2024-05-18 06:48:13 +02:00
Dominik 4628219bb9
Merge pull request #1956 from oliv3r/readline_detection
Readline detection
2024-05-17 19:37:40 +02:00
Dominik 12bebfb367
Merge pull request #1961 from jacklul/v6-patch-1
Fix error message mentioning wrong file
2024-05-17 19:20:41 +02:00
Jack'lul ecd2e8198b
Fix error message mentioning wrong file
Signed-off-by: Jack'lul <jacklulcat@gmail.com>
2024-05-17 18:03:57 +02:00
Dominik 3d4cc1beeb
Merge pull request #1960 from pi-hole/fix/database_queries
Fix spilled queries in database
2024-05-15 20:42:13 +02:00
DL6ER 32de390b00
Add Clang compiler support, tested with Clang 14.0.0 (Ubuntu 22.04.3 LTS), Clang 16.0.2 (Alpine 3.18), and Clang 17.0.6 (Alping Edge)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-15 20:41:52 +02:00
DL6ER 30cade643f
Use new constant also as back-off factor for exporting into the database
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-14 20:36:32 +02:00
DL6ER 688a551a24
Improve query storing algorithm to better cope with bursts of queries of arbitrary size and frequency
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-14 20:17:05 +02:00
Dominik bccfa2245f
Merge pull request #1959 from pi-hole/update/cJSON_1.7.18
Update bundled cJSON
2024-05-13 19:10:10 +02:00
DL6ER d4a89f3b3e
Update bundled cJSON from 1.7.17 -> 1.7.18 released earlier today
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-13 16:55:12 +01:00
DL6ER 55258150c1
Allocate memory for basename()
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-12 21:40:50 +02:00
DL6ER 91b1ced3ab
Fix use-after-free warning
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-12 21:38:46 +02:00