Coder Social home page Coder Social logo

medusa-team / linux-medusa Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 2.0 3.69 GB

A unique security module for the Linux operating system

License: Other

Makefile 0.20% C 98.33% Assembly 0.74% C++ 0.02% Shell 0.36% Perl 0.10% Awk 0.01% Python 0.19% Yacc 0.01% Lex 0.01% UnrealScript 0.01% sed 0.01% Gherkin 0.01% XS 0.01% Roff 0.02% Clojure 0.01% M4 0.01% SmPL 0.01% Raku 0.01% MATLAB 0.01%
linux linux-security-module lsm module security

linux-medusa's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

pspps azuminka

linux-medusa's Issues

Refactor wait/wakeup routines in chardev on L4

There are times when code in L4 has to wait for some event (e.g. when waiting for answer from the authorization server). Sleeping and waking up in these areas is based on changing process state and waking up by PID. This approach should be replaceable by kernel waitqueue mechanism in wait.c. Read more in memory-barriers.txt. Analyze if refactoring would be beneficial and implement the change.

Remove/fix usage of MEDUSA_EVTYPE_NOTTRIGGERED in events

Usage of MEDUSA_EVTYPE_NOTTRIGGERED in evtypes causes authorization server not able to synchronize internal hierarchy with actual system (filesystem, processes, etc.).

In other words, evtypes need to have bitnr assigned, so authorization server can decide whether the object can inherit security information from its parent (when object is not monitored) or it needs to be sent to authorization server to get specific security information.

See file_kobj_validate_dentry_dir in Medusa and generic_set_handler in Constable for more information.

cmdline empty

memcpy(tk->cmdline, ts_security->cmdline, sizeof(tk->cmdline)); in kobject_process.c doesn't have an effect since ts_security->cmdline is empty.

In older version of Medusa, it was populated in medusa_l1_task_alloc, but this hook was disabled.

One solution would be to bring back get_cmdline call to process_kern2kobj like it used to be.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.