[PR #2267] [MERGED] Limit GUI process execution to one per UID #14894

Open
opened 2026-08-05 03:06:33 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/2267
Author: @mlsmaycon
Created: 7/13/2024
Status: Merged
Merged: 7/15/2024
Merged by: @mlsmaycon

Base: mainHead: fix/limit-gui-exec-to-one-per-user


📝 Commits (7)

  • 2ff27f0 Limit GUI process execution to one per UID
  • 8ee2a1a adding debug logs and file
  • 7258d84 use filepath.base
  • 9ceb110 refactor user ownership check
  • 5bdfb80 log exec to file when enabled by flag
  • 979e563 fix flag name and handle error
  • ddaf421 move process check to its own file

📊 Changes

4 files changed (+111 additions, -19 deletions)

View changed files

📝 client/ui/client_ui.go (+24 -19)
client/ui/process.go (+37 -0)
client/ui/process_nonwindows.go (+26 -0)
client/ui/process_windows.go (+24 -0)

📄 Description

Describe your changes

replaces PID with checking process name and path and UID checks

#2237

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/2267 **Author:** [@mlsmaycon](https://github.com/mlsmaycon) **Created:** 7/13/2024 **Status:** ✅ Merged **Merged:** 7/15/2024 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `fix/limit-gui-exec-to-one-per-user` --- ### 📝 Commits (7) - [`2ff27f0`](https://github.com/netbirdio/netbird/commit/2ff27f00d4f8537f3f9ee350a17971ba21976389) Limit GUI process execution to one per UID - [`8ee2a1a`](https://github.com/netbirdio/netbird/commit/8ee2a1a18892b4fccb8685cca24b6d670fa4759f) adding debug logs and file - [`7258d84`](https://github.com/netbirdio/netbird/commit/7258d840f188dc04cfefb80c271551b92c4daa75) use filepath.base - [`9ceb110`](https://github.com/netbirdio/netbird/commit/9ceb11036788d1f59ad3deb05effb615538a1ebd) refactor user ownership check - [`5bdfb80`](https://github.com/netbirdio/netbird/commit/5bdfb8071830fd26dbc2c9f619f9e3cbac745b6f) log exec to file when enabled by flag - [`979e563`](https://github.com/netbirdio/netbird/commit/979e56339feb78edffda59b51ca275be9c7683da) fix flag name and handle error - [`ddaf421`](https://github.com/netbirdio/netbird/commit/ddaf421146bcb8e02efe49317dfa9dfeb3adc4f4) move process check to its own file ### 📊 Changes **4 files changed** (+111 additions, -19 deletions) <details> <summary>View changed files</summary> 📝 `client/ui/client_ui.go` (+24 -19) ➕ `client/ui/process.go` (+37 -0) ➕ `client/ui/process_nonwindows.go` (+26 -0) ➕ `client/ui/process_windows.go` (+24 -0) </details> ### 📄 Description ## Describe your changes replaces PID with checking process name and path and UID checks ## Issue ticket number and link #2237 ### Checklist - [x] Is it a bug fix - [ ] Is a typo/documentation fix - [ ] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 03:06:33 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#14894