RPM: update selinux support in tdebase

pull/92/head
François Andriot 5 years ago
parent d257b83fd4
commit 030be2b4a8

@ -197,6 +197,7 @@ ruby-devel
sane-backends-devel sane-backends-devel
scons scons
SDL-devel SDL-devel
selinux-policy-devel
sip-devel sip-devel
speex-devel speex-devel
sqlite-devel sqlite-devel

@ -184,6 +184,7 @@ ruby-devel
sane-backends-devel sane-backends-devel
scons scons
SDL-devel SDL-devel
selinux-policy-devel
sip-devel sip-devel
speex-devel speex-devel
sqlite-devel sqlite-devel

@ -177,6 +177,7 @@ ruby
ruby-devel ruby-devel
sane-backends-devel sane-backends-devel
SDL-devel SDL-devel
selinux-policy-devel
speex-devel speex-devel
sqlite-devel sqlite-devel
subversion-devel subversion-devel

@ -197,6 +197,7 @@ ruby-devel
sane-backends-devel sane-backends-devel
scons scons
SDL-devel SDL-devel
selinux-policy-devel
sip-devel sip-devel
speex-devel speex-devel
sqlite-devel sqlite-devel

@ -201,6 +201,7 @@ ruby-devel
sane-backends-devel sane-backends-devel
scons scons
SDL-devel SDL-devel
selinux-policy-devel
sip-devel sip-devel
speex-devel speex-devel
sqlite-devel sqlite-devel

@ -92,7 +92,7 @@ Source7: xdm%{?dist}
%if 0%{?fedora} >= 17 || 0%{?rhel} >= 6 %if 0%{?fedora} >= 17 || 0%{?rhel} >= 6
%define with_selinux_policy 1 %define with_selinux_policy 1
Source8: tdm%{?dist}.pp Source8: tdm%{?dist}.te
%endif %endif
%if 0%{?mgaversion} >= 3 %if 0%{?mgaversion} >= 3
@ -769,6 +769,12 @@ BuildRequires: libnsl-devel
# ATTR support # ATTR support
BuildRequires: libattr-devel BuildRequires: libattr-devel
# SELINUX support
%if 0%{?rhel} >= 6 || 0%{?fedora}
BuildRequires: checkpolicy
BuildRequires: selinux-policy-devel
%endif
# tdebase is a metapackage that installs all sub-packages # tdebase is a metapackage that installs all sub-packages
Requires: %{name}-runtime-data-common = %{version}-%{release} Requires: %{name}-runtime-data-common = %{version}-%{release}
Requires: %{name}-data = %{version}-%{release} Requires: %{name}-data = %{version}-%{release}
@ -3563,7 +3569,9 @@ fi
# SELINUX policy for RHEL / Fedora # SELINUX policy for RHEL / Fedora
%if 0%{?with_selinux_policy} %if 0%{?with_selinux_policy}
%__install -D -m 644 "%{SOURCE8}" "%{?buildroot}%{tde_confdir}/%{tdm}/tdm.pp" %__cp -f "%{SOURCE8}" "tdm.te"
%__make -f "%{_datadir}/selinux/devel/Makefile"
%__install -D -m 644 -D "tdm.pp" "%{?buildroot}%{tde_confdir}/%{tdm}/tdm.pp"
%endif %endif
# Mageia icon for TDE menu # Mageia icon for TDE menu

Binary file not shown.

@ -1,5 +1,5 @@
module tdm.el6 1.0; module tdm 1.0;
require { require {
type fprintd_t; type fprintd_t;

Binary file not shown.

@ -1,5 +1,5 @@
module tdm.el7 1.0; module tdm 1.0;
require { require {
type fprintd_t; type fprintd_t;

@ -0,0 +1,11 @@
module tdm 1.0;
require {
type fprintd_t;
type init_t;
class dbus send_msg;
}
#============= fprintd_t ==============
allow fprintd_t init_t:dbus send_msg;

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -0,0 +1,11 @@
module tdm 1.0;
require {
type fprintd_t;
type init_t;
class dbus send_msg;
}
#============= fprintd_t ==============
allow fprintd_t init_t:dbus send_msg;

Binary file not shown.

@ -0,0 +1,11 @@
module tdm 1.0;
require {
type fprintd_t;
type init_t;
class dbus send_msg;
}
#============= fprintd_t ==============
allow fprintd_t init_t:dbus send_msg;
Loading…
Cancel
Save