Commit Graph

6453 Commits

Author SHA1 Message Date
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
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
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
DL6ER fccbe2bee4 Add missing #include
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-12 21:38:43 +02:00
DL6ER b83fcadf6c Remove all-in build option - we aren't using it in Pi-hole v6.0
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-12 21:01:24 +02:00
yubiuser 30215fc2f8 Merge pull request #1958 from pi-hole/dependabot-github_actions-development-v6-github_action-dependencies-220eae05df
Bump the github_action-dependencies group with 2 updates
2024-05-11 13:11:49 +02:00
dependabot[bot] ede734051b Bump the github_action-dependencies group with 2 updates
Bumps the github_action-dependencies group with 2 updates: [actions/checkout](https://github.com/actions/checkout) and [eps1lon/actions-label-merge-conflict](https://github.com/eps1lon/actions-label-merge-conflict).


Updates `actions/checkout` from 4.1.4 to 4.1.5
- [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.4...v4.1.5)

Updates `eps1lon/actions-label-merge-conflict` from 3.0.0 to 3.0.1
- [Release notes](https://github.com/eps1lon/actions-label-merge-conflict/releases)
- [Changelog](https://github.com/eps1lon/actions-label-merge-conflict/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eps1lon/actions-label-merge-conflict/compare/v3.0.0...v3.0.1)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github_action-dependencies
- dependency-name: eps1lon/actions-label-merge-conflict
  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-11 10:54:00 +00:00
Dominik bf0c8cd753 Merge pull request #1955 from pi-hole/fix/FTL_db_read_perms
Change database permissions to -rw-r----- (640)
2024-05-10 20:14:44 +02:00
Olliver Schinagl be3d4cd0f6 FTL: Avoid hidden HAVE_READLINE define
We should set `HAVE_READLINE` based on whether it was actually
detected/found, not via a hidden fixed, as that contains compile errors
when readline is actually not available.

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
2024-05-10 19:19:14 +02:00
Olliver Schinagl 7de24a09e3 FTL_lua: Properly guard readline
Readline support should only be used when we know it is available. Lets
properly use a ifdef guard like we do in `shell.c`.

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
2024-05-10 19:17:12 +02:00
Dominik c72a9134c6 Merge pull request #1953 from pi-hole/merge-dev
Merge latest v5 development into v6
2024-05-10 18:21:09 +02:00
DL6ER 5cc5b377f1 Update tests, remove duplicated test
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-10 13:22:55 +02:00
DL6ER 6ce1668d41 Change database permissions to -rw-r----- (640)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-10 13:17:58 +02:00
DL6ER 73b5170ac0 Merge branch 'development' into merge-dev
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-05-10 10:32:36 +02:00