Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Command semodule -i mypol.pp takes more than one minute to execute. Why?

share|improve this question
up vote 4 down vote accepted

Without seeing the policy file, one can only guess, but it's probably because the policy is somewhat far-reaching in what it affects. Policies amount to changes to the filesystem, labeling the affected files. So, if your policy names a broad swath of the filesystem as being under its control, all of those files have to have their metadata modified.

share|improve this answer
A simple example is a trivial small policy file that just allows processes labeled collect_t to read files labeled var_log_t (i.e. one allow rule) - under RHEL/CentOS 7. Even on relatively recent hardware (including SSD) it takes like a minute or longer to load. – maxschlepzig Sep 25 '14 at 15:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.