---
name: "tomoyo-sortpolicy"
section: "8"
platform: "linux"
package: "tomoyo-tools"
version: "2.6.1-20210910-1+b1"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/tomoyo-sortpolicy"
---

# tomoyo-sortpolicy(8)

domain policy sorting utility for TOMOYO Linux

## NAME

tomoyo-sortpolicy - domain policy sorting utility for TOMOYO Linux

## SYNOPSIS

**tomoyo-sortpolicy**

## DESCRIPTION

This program reads domain policy from standard input and send the sorted contents to standard output. This is similar to [**sort**(1)](/sort/1.md), except that sorting is done per domain.

You can pass the content of */etc/tomoyo/domain\_policy.conf* or */sys/kernel/security/tomoyo/domain\_policy* using redirection or pipes to the standard input of this program.

## EXAMPLES

- **Sort domain policy**

  ```
    tomoyo-sortpolicy < /sys/kernel/security/tomoyo/domain_policy
  ```

## BUGS

If you find any bugs, send an email to \<tomoyo-users-en@lists.osdn.me\>.

## AUTHORS

- Tetsuo Handa \<penguin-kernel@I-love.SAKURA.ne.jp\>

  Main author.

- Jamie Nguyen \<jamie@tomoyolinux.co.uk\>

  Documentation and website.

## SEE ALSO

[**sort**(1)](/sort/1.md), [**tomoyo-selectpolicy**(8)](/tomoyo-selectpolicy/8.md)

See \<https://tomoyo.osdn.jp\> for more information.
