Page MenuHomeFreeBSD

Use caph_cache_catpages() in ping(8).
ClosedPublic

Authored by markj on Dec 11 2018, 4:19 PM.
Tags
None
Referenced Files
F150679537: D18514.id51870.diff
Fri, Apr 3, 7:44 AM
Unknown Object (File)
Thu, Mar 26, 8:58 AM
Unknown Object (File)
Wed, Mar 25, 10:30 AM
Unknown Object (File)
Wed, Mar 25, 5:36 AM
Unknown Object (File)
Tue, Mar 24, 11:05 AM
Unknown Object (File)
Sat, Mar 21, 10:49 AM
Unknown Object (File)
Sat, Mar 21, 10:49 AM
Unknown Object (File)
Sat, Mar 21, 6:29 AM
Subscribers

Details

Summary

Otherwise sendto() errors result in a SIGTRAP if kern.trap_enotcap=1.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Maybe lets use cap_helpers in whole file

Use helpers throughout ping(8).

  • Remove unneeded ENOSYS checks.
oshogbo added inline comments.
sbin/ping/ping.c
810 ↗(On Diff #51869)

We don't need to check ernno using caph_*

317 ↗(On Diff #51866)

Not sure why we removed this?

This revision now requires changes to proceed.Dec 11 2018, 10:31 PM
markj added inline comments.
sbin/ping/ping.c
810 ↗(On Diff #51869)

Are you looking at an old version of the diff?

317 ↗(On Diff #51866)

Not sure what you're referring to.

oshogbo added inline comments.
sbin/ping/ping.c
810 ↗(On Diff #51869)

Aghr porbably sorry.

This revision is now accepted and ready to land.Dec 11 2018, 10:40 PM
This revision was automatically updated to reflect the committed changes.