tomoyo-init(8)

tomoyo-init8

Load tomoyo linux policy automatically

Usage

tomoyo-init

Overview

When /sbin/init starts, the kernel automatically calls this program. Policy files that have been saved to disk are subsequently loaded into kernel memory.

This program copies the following files:

  /etc/tomoyo/exception_policy.conf => /sys/kernel/security/tomoyo/exception_policy
  /etc/tomoyo/domain_policy.conf => /sys/kernel/security/tomoyo/domain_policy
  /etc/tomoyo/profile.conf => /sys/kernel/security/tomoyo/profile
  /etc/tomoyo/manager.conf => /sys/kernel/security/tomoyo/manager
  /etc/tomoyo/stat.conf => /sys/kernel/security/tomoyo/stat

If /etc/tomoyo/tomoyo-post-init exists and is executable, then it will also be executed. This allows additional control over what happens at startup.

You will not usually need to invoke this program manually.

Examples

Contents of "/etc/tomoyo/tomoyo-post-init" allowing non-root "demo" user to edit policy
  #!/bin/bash
  echo manage_by_non_root > /sys/kernel/security/tomoyo/manager
  chown -R demo /sys/kernel/security/tomoyo

Releases

8 releases since Debian 5.0 (Lenny); the text changed 3 times.

  1. 5.0
  2. 6.0
  3. 7–10
  4. 11–12

Bugs

If you find any bugs, send an email to <[email protected]>.

Authors

Tetsuo Handa <[email protected]>

Main author.

Jamie Nguyen <[email protected]>

Documentation and website.

From tomoyo-tools 2.6.1-20210910-1+b1 in Debian 12 (Bookworm). Parsed by carta from the page's man source.