-
Notifications
You must be signed in to change notification settings - Fork 57.5k
Refactoring of medusa model #804
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…me changes in kernel configuration
This caused warnings in objtool, since frame pointers were not pushed onto the stack. It also caused BUGs in stack frame unwinder, since the frame pointers were missing.
The ipc_associate access handler returned value immediately from one code path, without re-locking an IPC object unlocked running this handler.
If an authorisation server is connected, the kobj related to a process can be validated immediately in medusa_l1_task_alloc(); there is no reason wait for validation to first access decision.
1) Remove unsupported LSM hooks from sources. 2) Comment out unused LSM hooks. 3) During compilaton process print warnings for those Medusa LSM hoooks, which have to be revisited / rewrited / checked ... For this purposes these functions are disconnected from kernel IPC hooks, which is done via medusa_l1_hooks table - medusa hook functions are removed from corresponding kernel LSM elements in this table. But medusa hooks are defined in source code, which leads during compilation process to warning "defined but not used" [-Wunused-function].
Change following acctypes (IPC subsystem) from TRIGGERED_AT_SUBJECT to TRIGGERED_AT_OBJECT: 1) acctype ipc associate 2) acctype ipc_ctl 3) acctype ipc msgrcv 4) acctype ipc msgsnd 5) acctype ipc permission 6) acctype ipc semop 7) acctype ipc shhmat
1) It is not necessary split Medusa initialisation into two phases yet. 2) Hook medusa_l0_task_free() was called within an interrupt, and mutex_lock() in this function leaded to deadlock. 3) For future reuse, sources of Layer-0 are left in repository.
- remove redundant capabilities - remove unused bprm hooks
Remove capabilities hooks from l1/medusa.c
…t the severity to printed messages
Remove the killpriv capability + provide better message system
… in Linux Kernel Add unit tests for medusa model and vs_model.h Move vsmodel implementation into its own header file Refactoring of model.h -> med_model.h
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.