From 296de7687f36ce5e02d0961a2bc92c411c0b73ce Mon Sep 17 00:00:00 2001 From: Kaleb S. KEITHLEY Date: Jan 06 2021 00:32:18 +0000 Subject: nfs-ganesha 3.3 selinux --- diff --git a/SOURCES/0003-selinux-ganesha.te.patch b/SOURCES/0003-selinux-ganesha.te.patch new file mode 100644 index 0000000..c09a71a --- /dev/null +++ b/SOURCES/0003-selinux-ganesha.te.patch @@ -0,0 +1,17 @@ +diff --git a/src/selinux/ganesha.te b/src/selinux/ganesha.te +index 246f9cc8c..6692eedf2 100644 +--- a/src/selinux/ganesha.te ++++ b/src/selinux/ganesha.te +@@ -307,3 +307,12 @@ allow ganesha_t self:capability { fowner setgid setuid }; + # allow ganesha_t glusterd_brick_t:dir { add_name getattr open read write remove_name search }; + # allow ganesha_t glusterd_brick_t:file { create getattr open read write unlink }; + ++######################################## ++# ++# ganesha local policy rhbz#1855350 ++ ++ifdef(`ceph_read_lib_files',` ++ optional_policy(` ++ ceph_read_lib_files(ganesha_t) ++ ') ++') diff --git a/SPECS/nfs-ganesha.spec b/SPECS/nfs-ganesha.spec index b8aacbd..4ecf153 100644 --- a/SPECS/nfs-ganesha.spec +++ b/SPECS/nfs-ganesha.spec @@ -115,12 +115,13 @@ Requires: openSUSE-release Name: nfs-ganesha Version: 3.3 -Release: 2%{?dev:%{dev}}%{?dist} +Release: 3%{?dev:%{dev}}%{?dist} Summary: NFS-Ganesha is a NFS Server running in user space License: LGPLv3+ Url: https://github.com/nfs-ganesha/nfs-ganesha/wiki Source0: https://github.com/%{name}/%{name}/archive/V%{version}%{?dev:-%{dev}}/%{name}-%{version}%{?dev:-%{dev}}.tar.gz +Patch0003: 0003-selinux-ganesha.te.patch BuildRequires: cmake BuildRequires: bison @@ -492,6 +493,7 @@ Development headers and auxiliary files for developing with %{name}. %prep %setup -q -n %{name}-%{version}%{?dev:-%{dev}} +%patch0003 -p1 %build cd src && %cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfo \