Resolves T992
Details
Details
- Reviewers
vanmeeuwen - Group Reviewers
PyKolab Developers - Maniphest Tasks
- T992: Do not set up Kolab if SELinux is enforcing a policy
- Commits
- rPc4b8e2b09a56: Check the current status of SELinux, and the configuration for the next…
rP51269b4dc293: Check the current status of SELinux, and the configuration for the next…
- Install Kolab on CentOS 7
- Configure SELinux to enforce the targeted policy
- Run setup-kolab
- Expect an error
Diff Detail
Diff Detail
- Repository
- rP pykolab
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
[root@kolab pykolab.git]# ./setup-kolab.py Traceback (most recent call last): File "./setup-kolab.py", line 42, in <module> setup.run() File "./pykolab/setup/__init__.py", line 60, in run log.error(_("SELinux configured to enforce a policy on startup. Read https://docs.kolab.org/installation-guide/preparing-the-system.html#selinux")) NameError: global name '_' is not defined
Comment Actions
- Ensure function _ is available for translation
- Here too, btw, make sure function _ is available for translation
Comment Actions
- Ensure function _ is available for translation
- Here too, btw, make sure function _ is available for translation
- Use log.fatal(), and sys.exit(1)
Comment Actions
[root@kolab pykolab.git]# sestatus SELinux status: enabled SELinuxfs mount: /sys/fs/selinux SELinux root directory: /etc/selinux Loaded policy name: targeted Current mode: permissive Mode from config file: enforcing Policy MLS status: enabled Policy deny_unknown status: allowed Max kernel policy version: 28 [root@kolab pykolab.git]# ./setup-kolab.py ; echo $? 2016-02-23 12:21:40,583 pykolab.setup CRITICAL SELinux configured to enforce a policy on startup. Read https://git.kolab.org/u/1 1 [root@kolab pykolab.git]# setenforce 1 [root@kolab pykolab.git]# ./setup-kolab.py ; echo $? 2016-02-23 12:21:45,218 pykolab.setup CRITICAL SELinux currently enforcing. Read https://git.kolab.org/u/1 1 [root@kolab pykolab.git]#