From 9eebd56869d4213940fac8bc0ea34b6ef554bc8a Mon Sep 17 00:00:00 2001 From: Fredrik Eriksson Date: Wed, 6 May 2020 18:35:36 +0200 Subject: [PATCH] fix selinux policy on gentoo --- selinux/sau.fc | 9 +++++++-- selinux/sau.te | 2 +- setup.py | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/selinux/sau.fc b/selinux/sau.fc index 1fcfd96..027293a 100644 --- a/selinux/sau.fc +++ b/selinux/sau.fc @@ -1,2 +1,7 @@ -/usr/bin/sau gen_context(system_u:object_r:sau_exec_t,s0) -/etc/sau.cfg gen_context(system_u:object_r:sau_config_t,s0) +/usr/bin/sau -- gen_context(system_u:object_r:sau_exec_t,s0) + +# on gentoo python executables are executed via python-exec +/usr/lib/python-exec/python[0-9\.]*/sau -- gen_context(system_u:object_r:sau_exec_t,s0) + + +/etc/sau.cfg -- gen_context(system_u:object_r:sau_config_t,s0) diff --git a/selinux/sau.te b/selinux/sau.te index 2959701..0b8f1c3 100644 --- a/selinux/sau.te +++ b/selinux/sau.te @@ -1,4 +1,4 @@ -policy_module(sau, 0.2) +policy_module(sau, 0.9.1) gen_require(` type system_cronjob_t; diff --git a/setup.py b/setup.py index d661095..60f8680 100755 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ from setuptools import setup, find_packages setup( name='sau', - version='0.9.0', + version='0.9.1', description='Tool for auto-updating OS and packages', author='Feffe', author_email='feffe@fulh.ax',