Skip to content

fix: ensure setuid bit is set during installation #299

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Nivesh12345
Copy link

Fix setuid bit not being set when installing from AUR

This PR fixes issue #297 where the setuid bit is not being set when installing swhkd from AUR.

Changes made:

  • Modified Makefile to ensure setuid bit is set during installation (removed sudo requirement)
  • Added explicit setuid bit setting in PKGBUILD as a fallback

The changes ensure that the binary has the correct permissions (-rwsr-xr-x) after installation, both when installing manually and through the AUR package.

@Shinyzenith
Copy link
Member

@newtoallofthis123 Hey Ishan, I'm no longer on arch so can you just check if this is correct? Things look good to me. I'll wait for your confirmation before merging.

@Shinyzenith Shinyzenith linked an issue Mar 18, 2025 that may be closed by this pull request
@newtoallofthis123
Copy link
Collaborator

Just installed an Arch vm to test this out!
Will let you know when I test it 😄

@newtoallofthis123
Copy link
Collaborator

newtoallofthis123 commented Mar 26, 2025

Okay it does seem to be working alright!
Also how do you propose this change be reflected in the PKGBUILD?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect permissions when installing swhkd-git from AUR
3 participants