From fb36a688949c50f40915c10a97f8fda014657d9a Mon Sep 17 00:00:00 2001 From: Maja Bojarska Date: Tue, 24 Jun 2025 08:27:54 +0200 Subject: [PATCH] fix(home-assistant) Fix capability names in default values (#36573) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Description** ⚒️ Fixes https://github.com/truecharts/public/issues/36572 **⚙️ Type of change** - [ ] ⚙️ Feature/App addition - [x] 🪛 Bugfix - [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] 🔃 Refactor of current code - [ ] 📜 Documentation Changes **🧪 How Has This Been Tested?** 1. Deploy the chart with default values, from this PR's sources. 2. Assert the DHCP watch permission error does not reproduce (see https://github.com/truecharts/public/issues/36572). Also, checking the actual container perms proves the necessary capabilities are now enabled: ```sh home-assistant-6699bb7c6c-x7htf:/config# cat /proc/1/status | grep Cap CapInh: 0000000000000000 CapPrm: 00000000000024cb CapEff: 00000000000024cb CapBnd: 00000000000024cb CapAmb: 0000000000000000 ``` Where `0x24CB` is `0b10010011001011` – the 10-th and 13-th bits are set high [(`CAP_NET_BIND_SERVICE` and `CAP_NET_RAW` respectively)](https://github.com/torvalds/linux/blob/master/include/uapi/linux/capability.h). **📃 Notes:** **✔️ Checklist:** - [x] ⚖️ My code follows the style guidelines of this project - [x] 👀 I have performed a self-review of my own code - [ ] #️⃣ I have commented my code, particularly in hard-to-understand areas - [ ] 📄 I have made changes to the documentation - [x] 🧪 I have added tests to this description that prove my fix is effective or that my feature works - [x] ⬆️ I increased versions for any altered app according to semantic versioning - [x] I made sure the title starts with `feat(chart-name):`, `fix(chart-name):`, `chore(chart-name):`, `docs(chart-name):` or `fix(docs):` **➕ App addition** Not applicable. ~If this PR is an app addition please make sure you have done the following.~ ~- [ ] 🖼️ I have added an icon in the Chart's root directory called `icon.png`~ --- charts/stable/home-assistant/Chart.yaml | 2 +- charts/stable/home-assistant/values.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/stable/home-assistant/Chart.yaml b/charts/stable/home-assistant/Chart.yaml index 797671e5923..2b6ec3b04d7 100644 --- a/charts/stable/home-assistant/Chart.yaml +++ b/charts/stable/home-assistant/Chart.yaml @@ -38,5 +38,5 @@ sources: - https://github.com/truecharts/charts/tree/master/charts/stable/home-assistant - https://hub.docker.com/r/homeassistant/home-assistant type: application -version: 27.6.1 +version: 27.6.2 diff --git a/charts/stable/home-assistant/values.yaml b/charts/stable/home-assistant/values.yaml index c48b8191ff6..b5b3b2d8e33 100644 --- a/charts/stable/home-assistant/values.yaml +++ b/charts/stable/home-assistant/values.yaml @@ -143,5 +143,5 @@ securityContext: runAsGroup: 0 capabilities: add: - - CAP_NET_RAW - - CAP_NET_BIND_SERVICE + - NET_RAW + - NET_BIND_SERVICE