Giter Club home page Giter Club logo

smack-testsuite's Introduction

Basic Smack Regression Test Suite for the Linux Kernel

https://github.com/smack-team/smack-testsuite

The smack-testsuite project provides a self-contained regression test suite for the Smack Linux Security Module (LSM).

Inline Resources

The test suite's source repository is part of the smack-team project and is located on Github at:

Installation

The smack-testsuite requires the Smack userspace, which must be built locally.

$ git clone https://github.com/smack-team/smack.git
$ cd smack
$ ./autogen.sh
$ make
$ sudo make install

It also requires the programs bash, make, ifconfig and socat. On a Fedora system these can be installed with:

$sudo dnf install bash make net-tools socat

Execution

Note that running the test suite may result in a change to the Smack configuration. While the test suite is designed to reset the system to its prior state there may be cases where this is done imperfectly. This is especially true if the execution of the test suite is interrupted.

Configuration

The test suite needs to know a non-root user under which some tests will be run. The source contains an example configuration file named config-example. Copy this file to a new file named config and change the line beginning with "notroot=" to specify a the user under which tests should be run.

Building the Test Tools

While the tests are bash scripts there are a few support utilities that are written in C. These are found in the tools directory and must be built prior to running the tests.

$ make -C tools

Running the Full Test Suite

# make test-results

Running Test Without a Network

# make local-results

Running an Individual Test

# make <test-name>

Using the Makefile to run individual tests allows for set-up to be done correctly.

smack-testsuite's People

Contributors

cschaufler avatar

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.