Page MenuHomeFreeBSD

Use caph_cache_catpages() in ping(8).
ClosedPublic

Authored by markj on Dec 11 2018, 4:19 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jul 5, 5:26 AM
Unknown Object (File)
Sat, Jul 4, 10:24 AM
Unknown Object (File)
Sat, Jul 4, 4:41 AM
Unknown Object (File)
Sat, Jul 4, 4:36 AM
Unknown Object (File)
Thu, Jul 2, 8:22 PM
Unknown Object (File)
Thu, Jul 2, 2:06 AM
Unknown Object (File)
Mon, Jun 22, 8:01 AM
Unknown Object (File)
Thu, Jun 18, 7:55 PM
Subscribers

Details

Summary

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

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 21495
Build 20810: arc lint + arc unit

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
317

Not sure why we removed this?

821

We don't need to check ernno using caph_*

This revision now requires changes to proceed.Dec 11 2018, 10:31 PM
markj added inline comments.
sbin/ping/ping.c
317

Not sure what you're referring to.

821

Are you looking at an old version of the diff?

oshogbo added inline comments.
sbin/ping/ping.c
821

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.