Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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

share|improve this question

1 Answer 1

up vote 3 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 at 15:19

Your Answer

 
discard

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.