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)
Fri, May 10, 11:12 AM
Unknown Object (File)
Fri, Apr 26, 11:46 AM
Unknown Object (File)
Fri, Apr 26, 11:10 AM
Unknown Object (File)
Apr 26 2024, 1:33 AM
Unknown Object (File)
Apr 25 2024, 6:19 PM
Unknown Object (File)
Apr 25 2024, 5:58 AM
Unknown Object (File)
Apr 25 2024, 3:38 AM
Unknown Object (File)
Mar 8 2024, 3:10 AM
Subscribers

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 5234
Build 5383: CI src buildJenkins

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

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.