Home

Awesome

SeSQLite

SQLite is the most widely deployed in-process library that implements a SQL database engine. It offers high storage efficiency, fast query operation and small memory needs. Due to the fact that a complete SQLite database is stored in a single cross-platform disk file and SQLite does not support multiple users, anyone who has direct access to the file can read the whole database content.

SELinux was originally developed as a Mandatory Access Control (MAC) mechanism for Linux to demonstrate how to overcome DAC limitations. However, SELinux provides per-file protection, thus the database file is treated as an atomic unit, impeding the definition of a fine-grained mandatory access control (MAC) policy for database objects.

SeSQLite is a SQLite extension that integrates SELinux access controls into SQLite with minimal performance and storage overhead. SeSQLite implements labeling and access control at both schema level (for tables and columns) and row level. This permits the management of a fine-grained access policy for database objects.

Source Code

This repository contains the complete source code for the SeSQLite project. SeSQLite integrated the Mandatory Access Control checks in the SQLite database.

SeSQLite is still in an alpha version, but the core functionalities of SQL are provided. You can find additional information about the project at:

http://unibg-seclab.github.io

Getting Started

In order to speed-up the development setup, we provide a Fedora vagrant machine with ansible provisioning. In order to start a the vagrant machine you just have to:

When the process is completed you can ssh to the virtual machine with vagrant ssh and you will find a copy of the repository in the /home/vagrant/sesqlite directory. Now try to navigate to the test/sesqlite/cunit sub-directory and run make to execute the tests.

Compiling

You should run SeSQLite on a machine that uses SELinux in enforcing mode, all our tests were done on Fedora or Android. Even if you can install SELinux in Ubuntu, this will not natively run in enforcing mode, so the SELinux checks embedded in SeSQLite may not work out of the box.

See the makefiles for additional targets.

License