Skip to content

liboping: remove sudo requirement #121388

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

Closed
wants to merge 1 commit into from
Closed

Conversation

wfaulk
Copy link

@wfaulk wfaulk commented Jan 24, 2023

  • Have you followed the guidelines for contributing?
  • Have you ensured that your commits follow the commit style guide?
  • Have you checked that there aren't other open pull requests for the same formula update/change?
  • Have you built your formula locally with brew install --build-from-source <formula>, where <formula> is the name of the formula you're submitting?
  • Is your test running fine brew test <formula>, where <formula> is the name of the formula you're submitting?
  • Does your build pass brew audit --strict <formula> (after doing brew install --build-from-source <formula>)? If this is a new formula, does it pass brew audit --new <formula>?

liboping is opening a raw socket for ping, which requires root privileges, but opening it as a datagram seems to not restrict anything it tries to do and doesn't require root privileges. However, in case there is something it does that needs a raw socket, if it runs as root, it will still open a raw socket.
@BrewTestBot BrewTestBot added the perl Perl use is a significant feature of the PR or issue label Jan 24, 2023
@@ -33,6 +34,11 @@ class Liboping < Formula
url "https://raw.githubusercontent.com/Homebrew/formula-patches/03cf8088210822aa2c1ab544ed58ea04c897d9c4/libtool/configure-pre-0.4.2.418-big_sur.diff"
sha256 "83af02f2aa2b746bb7225872cab29a253264be49db0ecebb12f841562d9a2923"
end
# Make oping and noping not require sudo
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be submitted and merged upstream

@chenrui333 chenrui333 added do not merge upstream issue An upstream issue report is needed labels Jan 25, 2023
@chenrui333
Copy link
Member

relates to octo/liboping#69

@github-actions
Copy link
Contributor

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added the stale No recent activity label Feb 15, 2023
@github-actions github-actions bot closed this Feb 23, 2023
@github-actions github-actions bot added the outdated PR was locked due to age label Mar 25, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated PR was locked due to age perl Perl use is a significant feature of the PR or issue stale No recent activity upstream issue An upstream issue report is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants