feat(linux): add auto privilege bootstrap for evdev - #86
Open
lywing-god wants to merge 230 commits into
Open
lywing-god wants to merge 230 commits into
lywing-god wants to merge 230 commits into
Conversation
Add Traditional Chinese README with project details and setup instructions.
Create README in Traditional Chinese
Add French README translation
docs: add French README translation
docs:update readme
Added Japanese README with installation and usage instructions. Ciallo~(∠・ω< )⌒★
Create Japanese README for BongoCat. Ciallo~(∠・ω< )⌒★
docs: add Korean README translation
docs: add Indonesian README translation
…options for model rendering quality
vladelaina
force-pushed
the
main
branch
3 times, most recently
from
October 1, 2026 12:34
858ac6f to
7fb927c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add automatic privilege elevation for the experimental Linux Wayland evdev backend.
When started with
BONGOCAT_ENABLE_EVDEV=1, BongoCat first attempts to open keyboard, pointer, and other event devices as the current user.If access is denied, the program restarts itself through
sudoand opens the devices read-only. It then removes the elevated identity and runs as the original user with the opened device descriptors.This avoids persistent
/dev/inputACLs and membership in theinputgroup.Details
/proc/self/exefor the unprivileged restart.BONGO_CAT_SUDO_EXECUTABLE.Security notes
CN Trans 中文
概要
为 Linux Wayland evdev 后端增加自动提权流程。
使用
BONGOCAT_ENABLE_EVDEV=1环境变量启动时,BongoCat 会先以当前用户身份尝试打开键鼠等Event设备。如果权限不足,程序将通过
sudo重新拉起自己,以只读方式打开设备。然后清除提权用户,携带打开的设备描述符,降回原用户身份正常运行。这样无需为
/dev/input设置持久 ACL,也不必将用户加入input组。实现细节
/proc/self/exe重新执行当前程序。BONGO_CAT_SUDO_EXECUTABLE编译期配置。安全说明