[DSE-Dev] Bug#724999: libsemanage-common: Missing configuration parameters makes semodule calls really slow
Laurent Bigonville
bigon at debian.org
Mon Sep 30 11:27:53 UTC 2013
Package: libsemanage-common
Version: 2.1.10-2
Severity: normal
Tags: patch
Hi,
This is a reminder bug.
On debian, any semodule operation is unbearably slow.
Dominick Grift has found that adding the following lines to
/etc/selinux/semanage.conf was fixing this.
# expand-check check neverallow rules when executing all semanage commands.
# Large penalty in time if you turn this on.
expand-check=0
Other parameter could also be used to optimize the speed in some operations:
# usepasswd check tells semanage to scan all pass word records for home directories
# and setup the labeling correctly. If this is turned off, SELinux will label /home
# correctly only. You will need to use semanage fcontext command.
# For example, if you had home dirs in /althome directory you would have to execute
# semanage fcontext -a -e /home /althome
usepasswd=False
bzip-small=true
bzip-blocksize=5
Cheers,
Laurent Bigonville
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.10-3-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_BE.utf8, LC_CTYPE=fr_BE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
-- no debconf information
More information about the SELinux-devel
mailing list