Page MenuHomeFreeBSD

Deliver SIGTRAP when ENOTCAPABLE error is returned from a syscall for the process in capability mode.
ClosedPublic

Authored by kib on Sep 20 2016, 9:36 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 8 2024, 3:10 AM
Unknown Object (File)
Dec 22 2023, 9:44 PM
Unknown Object (File)
Dec 15 2023, 8:13 PM
Unknown Object (File)
Nov 13 2023, 10:52 AM
Unknown Object (File)
Nov 3 2023, 5:12 AM
Unknown Object (File)
Nov 1 2023, 10:31 AM
Unknown Object (File)
Oct 31 2023, 8:45 PM
Unknown Object (File)
Oct 27 2023, 5:04 AM
Subscribers

Diff Detail

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

Event Timeline

kib retitled this revision from to Deliver SIGTRAP when ENOTCAPABLE error is returned from a syscall for the process in capability mode..
kib updated this object.
kib edited the test plan for this revision. (Show Details)
kib added reviewers: emaste, bapt, oshogbo.
kib set the repository for this revision to rS FreeBSD src repository - subversion.
oshogbo edited edge metadata.

That's very cool idea.

This revision is now accepted and ready to land.Sep 20 2016, 9:39 AM

That's very cool idea.

By emaste'.

emaste edited edge metadata.

Possible enhancements include being able to set this on a per-process basis, and allowing other than SIGTRAP, but this solves my immediate use case.

kib edited edge metadata.

Add procctl(2) knob to enable trapping behavior only for subtree.
Treat ECAPMODE same as ENOTCAPABLE.

This revision now requires review to proceed.Sep 20 2016, 4:02 PM
sys/kern/subr_syscall.c
182 ↗(On Diff #20542)

ksi.ksi_errno = error1;?

kib added a reviewer: kib.
kib marked an inline comment as done.
This revision is now accepted and ready to land.Sep 20 2016, 5:25 PM
kib edited edge metadata.

Report actual error in siginfo, it is not neccessary ENOTCAPABLE now.

This revision now requires review to proceed.Sep 20 2016, 5:27 PM
emaste edited edge metadata.
This revision is now accepted and ready to land.Sep 20 2016, 5:32 PM
This revision was automatically updated to reflect the committed changes.