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.35% Assembly 0.74% C++ 0.01% 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 security module lsm linux-security-module

linux-medusa's Introduction

Medusa Voyager Security System

Medusa is a package that improves the overall security of the Linux OS by extending the standard Linux (Unix) security architecture while preserving backward compatibility. Briefly, it supports, at the kernel level, a user-space authorization server (and is thus fully transparent to any user space applications). Before the execution of certain operations, the kernel asks the authorization server for confirmation. The authorization server then permits or forbids the operation. The authorization server can also affect the way an operation is executed in some cases, which are described later. This method allows the use of almost any security architecture. When the authorization server is properly configured, it can determine access rights within the system to a very fine level and do very good auditing.

Architecture

Medusa consists of two basic parts: a small patch to the Linux kernel and a user space security daemon called "Constable". Constable is the current implementation of an authorization server. User space implementation allows kernel changes to be simpler and smaller and thus easier to port to new versions of the Linux kernel and to be more flexible, so improvements to the authorization server should not require changes in the kernel.

Communication between Constable and kernel goes through the special device "/dev/medusa" (char major 111 minor 0), because it should be both fast and flexible. When the kernel needs confirmation, it writes data to this device, makes the current process sleep and wakes up Constable. Constable reads the data from /dev/medusa, chooses a response (depending on his configuration, which is discussed in doc/Constable), sends it back to the kernel and sleeps. The kernel gets the data, wakes up the process and determine the result of the operation. Constable can also send certain commands to the kernel (even if the kernel doesn't require them), which are then executed by the kernel. The security daemon has to use a specific communication protocol defined in kernel, so it is possible to implement a full-featured authorization server by only knowing this protocol and knowing that the kernel supports it, without worrying what's really happening in the kernel. Constable is only one example of such an authorization server. The protocol allows communication in the form of packets which carry all necessary data.

Installation

Run the bash file:

build.sh

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.