Skip to content

Conversation

@brooksdavis
Copy link
Member

Add a prototype dl_c18n_control() that allows compartments to be disabled at runtime. The current implementation is a sledgehammer that sets all the pages to PROT_NONE and MAP_GUARD. It currently only supports disabling compartments.

This function allows compartments to be disabled by name at runtime.  It
can walk all loaded DSOs for all compartments of a given name or be
resticted to a single DSO.  For extensibility purposes there is a command
argument and a currently unused flags argument.  The command can either
be DISABLE to disable a compartment or DUMP to dump a list of
compartments to stdout.
Add a -d <name> and -p <path> option to disable a single compartment
as a quick hack to exercise dl_c18n_control's DISABLE command and -D to
exercise the DUMP command.

This is all a bit of hack and should probably replaced by extending the
list of libraries into a little DSO to perform various operatings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants