[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Change request: SELinux tweaks.



Attached are some patches that will fix many AVC's that are currently
happening within our infrastructure.

Patch 0010-Fix-our-semanage_fcontext-function-to-work-on-symlin.patch
/should/ fix the problem introduced in
41acfbc83c80d12d915a0d6087e841aba2c7e78c that caused restorecon to flip
out when trying to apply context to a symlink.

The rest should all be fairly straight-forward fixes that involve
flipping booleans, setting context, and creating custom policy modules.
Apologies for the binary blobs in the diffs :)

luke
>From 88b27f114147315ca789b6dda1263353f8582fd5 Mon Sep 17 00:00:00 2001
From: Luke Macken <lmacken puppet1 fedora phx redhat com>
Date: Fri, 21 Nov 2008 15:15:58 +0000
Subject: [PATCH] Add a custom SELinux policy module for our noc systems.

This allows ping_t to read from a nagios_spool_t fifo.

diff --git a/configs/system/selinux/modules/noc.pp b/configs/system/selinux/modules/noc.pp
new file mode 100644
index 0000000000000000000000000000000000000000..1321793adc4bc4c484d1a66ffa6efcaeaba50480
GIT binary patch
literal 23375
zcmeI4S#u*fa>v{2yM5o++FN$}VB2bK&#uD{`(n** 5D}o=Lq+XUmOlbsR|U!Dpqmo
zkXjB$>?d&8U)N9L|1SZM5J_>^huGomMhIfzN+c4Qi9`Zb|NYf}{_oE`c<|sGiodJ)
z%?}?u_%G%ChMu4QF#D&f8DC_dwB=Yks{Dc?)qhEm Ux0dTl~C!J~(}P`jkAvlMn$(
z_)En<4v}= hPrAlr}<b`!?bUUOE>(A^8bjkdeL7 J6Gp7boWp(UoKr!{+ynubY3;(
zFY5PK6^piMTrp6Q;-Yi;;6Mk=uDfb*v;bWIp1XS1wF}A_Mb#EV{mXjzeZ?kUxGA82
zT?ufFc;w}>tF8d^hpSwJOsBu2*bBFzr4NSNx#DW75s?19P)Zt%>G;A8`7m O0nqy-
zk93?Dg<INim;u#omjeTX_!?VDz28(+GnLTCZ;_ghL)l(8q<>ox92h7q>8KWg87DE&
zVQ2yMYZO-f;2OyM2a4-alS2TJKM9faP%O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hz=%4{42yK3^*xV<BDs
z9&F8Gf5yiJs&k#jM=Jrqn=QPqj&1hU<hsDBo^h5qsM2=lkZxjQnB?WVq?LbV3<RVF
z;g5*xjzP)5xm3*)Z7IW};cFkMTMa?e5+{F?D0U}-iqV0yr>|9AkQ_}fM(hmyE}}<j
zM2XPq{yGHZ{Y$WYL*T;x)hj&_I{}-B)SWb2)8Tf*UBni2d*#4JA6`H3O2qqT_t4#w
zI{1(dnaed^U*9MIPjv#Q>>2_Nh8;ZMzXTEV$;-Bt{V$<^$qsKdGOc&O6a`&%0G^&C
z8}&`;v`gnVV%q-AbFDCKS<P-TedlX%d&Y1$!1i1wv^G3n2a!v $bq~ga(D2_us!^<
zsw}b9E=D(kX{zzD8x5*^Pjip`b8im(OZM^SKd|-An*!3#2L_v`Pu+F0y0S`}3CY^|
zEc(V1=;VJS1(;+Rm l+po1j`un(U=)x!KLjAWB$mnm+f8;#(hxrrN3HA$YD%1|lW+
zrSUDN{R9;mt=Ocd;djfKK8Y%Lvo=+CdAW5qam%}%K=+8O8wE;a6BNSA 0>QElP%w{
mdPsf3X? ?rPQR^MrT*HDRtL_5QPTE4d3_hlyb2pcZ2k{H8Q2>D

literal 0
HcmV?d00001

diff --git a/configs/system/selinux/modules/noc.te b/configs/system/selinux/modules/noc.te
new file mode 100644
index 0000000..fd1b716
--- /dev/null
+++ b/configs/system/selinux/modules/noc.te
@@ -0,0 +1,10 @@
+policy_module(noc,1.0.0)
+
+require {
+	type nagios_spool_t;
+	type ping_t;
+	class fifo_file read;
+}
+
+#============= ping_t ==============
+allow ping_t nagios_spool_t:fifo_file read;
diff --git a/manifests/servergroups/noc.pp b/manifests/servergroups/noc.pp
index 862fa2a..337bad2 100644
--- a/manifests/servergroups/noc.pp
+++ b/manifests/servergroups/noc.pp
@@ -25,4 +25,6 @@ class noc {
     }
 
     selinux_bool { 'httpd_can_network_connect_db': bool => 'on' }
+    semodule { 'noc':
+    }
 }
-- 
1.5.5.1

>From 970120e458e784396d57279b85fce7382b975929 Mon Sep 17 00:00:00 2001
From: Luke Macken <lmacken puppet1 fedora phx redhat com>
Date: Fri, 21 Nov 2008 15:17:30 +0000
Subject: [PATCH] Create a custom SELinux policy module for hosted, and enable
 the rsync_export_all_ro boolean.


diff --git a/configs/system/selinux/modules/hosted.pp b/configs/system/selinux/modules/hosted.pp
new file mode 100644
index 0000000000000000000000000000000000000000..36f27ed44d9dfdc786366be0031e277fb9a0b012
GIT binary patch
literal 23544
zcmeI4S(6;OamVTPO<%I)`%=lYrKUX`aV3Wz^x|2GVt6CGM~GU#I2;`{Rp{yRR9E%Z
zF~e~<LZ854e<^<`KhghR0_es}_w+W8X *6D#B>2jBoc|t1du 0f4%sR|NVt~_wIe5
z_<M ~^U=L~|Eav+(etw(Xa7_+<MZs3wj65*$gd~ {%eW^((|?-T=~m-`tbPi nf<H
zk3s}1;ja|`Bt+7U8|tb#pXOs(4b#3Y&fV}E%Ku}^>P3Gx?OdH-(ZYSje7ST `Ad2N
z=(K9eU)Aq#Di&?ixMBd1;-Yi;;2`H06)(GLaMXZe5T3ev*0l D=}6TUL;dS|_yffz
zU$`l#e_IJ?jdbMYva2pY^GB;(!%U;!Q0zt9(9#Co?Obs&RS!u2ekdgk#WZ~8hI|-0
zk|5}Pl1CcOi^46fI}Czg+vPyV;J^A-0{1mVRZ|IV{4S~aIF#*WL;CBA&_GA2Nkg?5
zOh1W%4?_#8-=eV65H_&+4;9zFCWinae;Oj`p;(3y1H&B*4=51?&kOni-4GW>duVr$
zAmBEFZRv*;9 yZyOHe@fAqEZsg>xoaf%bz8CXEni9B#&;lo);qbKpnbOYJIY3*0~(
z*1AKENjR{`)Yw$drIER*9imvee(2gO StdkOw)9bX&xD<SP?2*^X2G9$0NuMu{8x6
z0w_^OBB880aFFa4N?eyYQZ(afr!Gq5p1WfFYBNAZh6qapB2;{ANL>>zvXPd~E!qn=
zWiV+7n55qz2>p&)n3ttNllGQjnRl+)&}WoT`N9hlZ!_|)m_r{eZPi{1Q2j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236^
zu-=E4B)k#vuG<}a_pA;+q<zM6P1jdf3dmEN04dwLfP-O+4EXO=1bgzbb+!JN(!XSb
z*D9IS+hd4=t=fZ5&ypMPW^~%6^BXa3|K_=7n6|8DSDC&>Hn<&q*dJkgswK2GJYR*8
ztH|hqyd!dV L{tZ^0NY#+G-c0d&^W+|JaQN)4ij*r~a8=4*YZW #jCX`OYr|WS#d6
zHcp?q%Vc(CmbN7%bLW%j8&9y4|5OGr$ucxwXu~$aw3s&8tK)LBo0mbHFleei^Mc}Q
z? 6ZWspdX(u1*FbC-|lEHK+Xq6B$>r38c|?&6z%lCio^apxeCMI-9uW-A=H3Le`Z6
zC$b3!VdZyDE6~V>Z&)p)KH(JJx3JZ3t6HhQ_C~Ee$H6#hd!M|%O=Mn03?eoE2N2ff
AiU0rr

literal 0
HcmV?d00001

diff --git a/configs/system/selinux/modules/hosted.te b/configs/system/selinux/modules/hosted.te
new file mode 100644
index 0000000..2d0a8df
--- /dev/null
+++ b/configs/system/selinux/modules/hosted.te
@@ -0,0 +1,8 @@
+policy_module(hosted,1.0.0)
+
+require {
+        type httpd_sys_script_t;
+}                                                                               
+
+#============= httpd_sys_script_t ==============                                
+auth_getattr_shadow(httpd_sys_script_t)
diff --git a/manifests/servergroups/hosted.pp b/manifests/servergroups/hosted.pp
index 0172046..81548c2 100644
--- a/manifests/servergroups/hosted.pp
+++ b/manifests/servergroups/hosted.pp
@@ -74,4 +74,11 @@ class hosted {
     semodule { 'git':
     }
 
+    semodule { 'hosted':
+    }
+
+    selinux_bool { 'rsync_export_all_ro':
+         bool => 'on' 
+    }
+
 }
-- 
1.5.5.1

>From ea3f73b3971316a4ad8040769c08e232db6a728a Mon Sep 17 00:00:00 2001
From: Luke Macken <lmacken puppet1 fedora phx redhat com>
Date: Fri, 21 Nov 2008 15:18:12 +0000
Subject: [PATCH] Set the context of /home/fedoramail/procmail.log to postfix_var_run_t on bastion


diff --git a/manifests/servergroups/gateway.pp b/manifests/servergroups/gateway.pp
index 03f6b16..a29995c 100644
--- a/manifests/servergroups/gateway.pp
+++ b/manifests/servergroups/gateway.pp
@@ -30,4 +30,9 @@ class gateway{
         ensure => running,
         hasstatus => true,
     }
+
+    semanage_fcontext { '/home/fedoramail/procmail.log':
+        type => 'postfix_var_run_t'
+    }
+    
 }
-- 
1.5.5.1

>From 23642165938b5c6aea2f241e151c608cc2163101 Mon Sep 17 00:00:00 2001
From: Luke Macken <lmacken puppet1 fedora phx redhat com>
Date: Fri, 21 Nov 2008 15:18:33 +0000
Subject: [PATCH] Enable the rsync_export_all_ro SELinux boolean on cvs.


diff --git a/manifests/servergroups/cvs.pp b/manifests/servergroups/cvs.pp
index f3aad3e..c2c884f 100644
--- a/manifests/servergroups/cvs.pp
+++ b/manifests/servergroups/cvs.pp
@@ -24,5 +24,8 @@ class cvs {
         hasstatus => true,
     }
 
+    selinux_bool { 'rsync_export_all_ro':
+         bool => 'on' 
+    }
 
 }
-- 
1.5.5.1

>From f8e7911733b2a22729fabc0c175dda75d1d34e62 Mon Sep 17 00:00:00 2001
From: Luke Macken <lmacken puppet1 fedora phx redhat com>
Date: Fri, 21 Nov 2008 15:18:53 +0000
Subject: [PATCH] Enable the nfs_export_all_rw and httpd_use_nfs booleans on appRelEng


diff --git a/manifests/servergroups/appRelEng.pp b/manifests/servergroups/appRelEng.pp
index 88f2684..926f161 100644
--- a/manifests/servergroups/appRelEng.pp
+++ b/manifests/servergroups/appRelEng.pp
@@ -31,6 +31,8 @@ class appRelEng {
     }
 
     selinux_bool { 'use_nfs_home_dirs': bool => 'on' }
+    selinux_bool { 'nfs_export_all_rw': bool => 'on' }
+    selinux_bool { 'httpd_use_nfs': bool => 'on' }
     selinux_bool { 'httpd_enable_homedirs': bool => 'on' }
     selinux_bool { 'httpd_can_network_connect_db': bool => 'on' }
 
-- 
1.5.5.1

>From a0b54ada732c3f9141c6be0c94c9e1230ae8a1c7 Mon Sep 17 00:00:00 2001
From: Luke Macken <lmacken redhat com>
Date: Fri, 21 Nov 2008 19:01:28 +0000
Subject: [PATCH] Update our masher SELinux policy module to allow cvs/rpm usage


diff --git a/configs/system/selinux/modules/masher.pp b/configs/system/selinux/modules/masher.pp
index 6dfc9e2be5b4866a95a414f137fd8fb2054bdc71..4fccc6d9fadba7a527a40c132a8237a5f6f85b19 100644
GIT binary patch
delta 394
zcmZ3nlX1p=Mxp-yH9r{{7#Ns<SOkbuT{jBdG~s0jGC`OPh*>5-FcqK7Z_38X1>~`U
zc>Kv_#qp^Xsmbvryg)G~keE<WL2i6mVo`ifW>S0!D^QpnB+QkRnHOIIGK&$!<;f^1
zDM*Pg0U5;xHVUK-Vid?S=E=6EU5uQQADBx|<~P 1<d|GwCO=u*%w;mSnZo3LFfB9r
zy_pA)FT=<-`Gc7|qX1BiG&@LlumaO$Ju^o}2aqnH_yjX&Mg=t4M6h`L<Y4mz#`?(t
zHp-L#oAONFZy_-`--=^1v&B8m2$;_cit>Rz1O*QagPe`<J4_TrgTetN1dt^`p#cns
T$!{H1c|b<M{JfdPX^9j7YCvGC

delta 150
zcmbQSpK--bMxp-yH9r{{7#Ns<SOkbmoi+;HG~s0iGC`OPL{D}w6`#y+%ErnL<S~MH
zJQ*b=1u5|*AZez_mrc7EStiGsIZr-oE;D(rnaAW<ONGg*<}N^5W^$`Jh%Ynwu4Muv
n`{a$L!js?H2~3VP=h>WV^^cR0d2)`6<m8Jk;+vUVr%3?-6)Gw>

diff --git a/configs/system/selinux/modules/masher.te b/configs/system/selinux/modules/masher.te
index b133a5c..d31f1d2 100644
--- a/configs/system/selinux/modules/masher.te
+++ b/configs/system/selinux/modules/masher.te
@@ -2,6 +2,14 @@ policy_module(masher,1.0.0)
 
 gen_require(`
 	type httpd_t;
+	type rpm_var_lib_t;
 ')
 
 domain_read_all_domains_state(httpd_t)
+
+cvs_exec(httpd_t)
+rpm_exec(httpd_t)
+
+allow httpd_t rpm_var_lib_t:dir { getattr search };
+allow httpd_t rpm_var_lib_t:file { read_file_perms };
+
-- 
1.5.5.1

>From b056b1f93b6d05b3de48675deebf372a2cdf53d7 Mon Sep 17 00:00:00 2001
From: Luke Macken <lmacken redhat com>
Date: Fri, 21 Nov 2008 19:03:50 +0000
Subject: [PATCH] Add a collab SELinux module for our mailman setup


diff --git a/configs/system/selinux/modules/collab.pp b/configs/system/selinux/modules/collab.pp
new file mode 100644
index 0000000000000000000000000000000000000000..7afa4d1019fde644afcd205f4f658135e92cbcf2
GIT binary patch
literal 23390
zcmeI4S(78VamUB<J-+YTDtRoMWA(IVC5IpM;$CSqp^fk!;nDiVp<q;3fz5IktGIRa
z;c$dLfy4f~ep>&334la5*<8-ioRDS^jb`CWBodj4L;_X+^W}g2-!D9P Zf8Tf2jDa
z4<9`EZ{_`to?rYh`<JR2ud<KZa;zOyenpY$zotkaU9 $bpZ>C*J~)1Q{FH3MlMsPQ
z_*=z450P}^hPrCbr}<b`!?bUUb2t2k^8bvodeNUvJ6Gq|^zcwIUoKr!{*s=kbXqm#
zuj=<V6^piMTrp6Q;-Yi;;6UdW6)(GLaI^qp0G_&f*0l D8A#O@L;dS|_+!N;U$`lt
ze_IJ~jd<kcva2ot^QWs^gG{G?px6typ`{Oo+qvRmsu7U>qfkm3jOqBy4f!y1BmvO-
zB#(5Q7lm8eaF_(uZI=TBgZ>&@Nxk1yR5O*($M2Dvk3-pBHl%-F5gZsOE$OHhff*+;
z&|zo+^;;BH{ooqN{3nX*QIkUek-rF$^iV9ri~->urU#HPf~N)J0B?{BvpuxCXOQYP
zgKg=j6dKs%xl2HR_aP<@28D9QS^ WiOeUQW=p1UssT3Q20db&5-b?H%Nek3K8rHHy
zj&V43;i<8yt|XDUi5;w1x_;=|Yv3Sg2~X2?;AtM2sMruJT=T`~M#m$-4X||u7y=*>
zM<SuDI$)6O7E0XYIZ|}vai=Xp<gQ#Xezh8)Ayb4V0uUlTHl%K_7uj%2=N9dSn=+Yn
zM4e>Z00`rbQka*e)h6vV!!qw&vmwt2q4EV6AYNzWT`>ngdfF<z6d?MGc5H^WA&Fl2
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4&)t?yMxb%
z?ckqPWr?kJF}fX0Q;m<^Xi(idntSYDcyr+2vX4IdfvtDm6p(h_GuS+R;x3cbl~vkI
zNY>70(KntzC;zz=V3K8EKG%kAf@(2ovKO FW;ZW`C}Fi}`oc4cZ nj)YNwX_;JG>(
zh?L-$#y6by6I5ihVw0MN-wkK_B&y)swW+$z%dNAC8{X{%x<_Q)C{QAspb%Dm=d=Nx
qZ1{%NL+TSw>-!$I`fb%J_1E5NwdXt-C2jAM*LShZtFS D=Kle4c-|ZU

literal 0
HcmV?d00001

diff --git a/configs/system/selinux/modules/collab.te b/configs/system/selinux/modules/collab.te
new file mode 100644
index 0000000..f6a6196
--- /dev/null
+++ b/configs/system/selinux/modules/collab.te
@@ -0,0 +1,11 @@
+policy_module(collab,1.0.0)
+
+require {
+	type mailman_mail_t;
+	type initrc_tmp_t;
+	class file ioctl;
+}
+
+#============= mailman_mail_t ==============
+allow mailman_mail_t initrc_tmp_t:file ioctl;
+
diff --git a/manifests/servergroups/collab.pp b/manifests/servergroups/collab.pp
index 988d57e..e46e392 100644
--- a/manifests/servergroups/collab.pp
+++ b/manifests/servergroups/collab.pp
@@ -31,4 +31,7 @@ class collab {
         type => 'mailman_data_t'
     }
 
+    semodule { 'collab':
+    }
+
 }
-- 
1.5.5.1

>From 5a58dc586baec0eef83dc36558dfe14a50d64dce Mon Sep 17 00:00:00 2001
From: Luke Macken <lmacken redhat com>
Date: Fri, 21 Nov 2008 19:04:22 +0000
Subject: [PATCH] Set the proper context of /cvs and /srv/cache on cvs


diff --git a/manifests/servergroups/cvs.pp b/manifests/servergroups/cvs.pp
index c2c884f..6f0a721 100644
--- a/manifests/servergroups/cvs.pp
+++ b/manifests/servergroups/cvs.pp
@@ -28,4 +28,12 @@ class cvs {
          bool => 'on' 
     }
 
+    semanage_fcontext { '/cvs':
+        type => 'httpd_sys_content_t'
+    }
+
+    semanage_fcontext { '/srv/cache(/.*)?':
+        type => 'httpd_sys_script_rw_t'
+    }
+
 }
-- 
1.5.5.1

>From a0e6a8f2453dd1f990acdc4c78790d1985323518 Mon Sep 17 00:00:00 2001
From: Luke Macken <lmacken redhat com>
Date: Fri, 21 Nov 2008 19:05:08 +0000
Subject: [PATCH] Set the httpd_sys_script_rw_t context to various bodhi locations


diff --git a/manifests/services/bodhi.pp b/manifests/services/bodhi.pp
index 5a7a5d6..a0789a0 100644
--- a/manifests/services/bodhi.pp
+++ b/manifests/services/bodhi.pp
@@ -163,6 +163,14 @@ class bodhi-masher inherits bodhi-wsgi-server {
         mode => '0440'
     }
 
+    semanage_fcontext { '/home/masher/.cvspass':
+        type => 'httpd_sys_script_rw_t'
+    }
+
+    semanage_fcontext { '/usr/share/bodhi/comps(/.*)?':
+        type => 'httpd_sys_script_rw_t'
+    }
+
 }
 
 class bodhi-dev inherits bodhi-wsgi-server {
-- 
1.5.5.1

>From 67016e61225de15224afeeccd49653101869be8c Mon Sep 17 00:00:00 2001
From: Luke Macken <lmacken redhat com>
Date: Fri, 21 Nov 2008 19:06:53 +0000
Subject: [PATCH] Fix our semanage_fcontext function to work on symlinks


diff --git a/manifests/filetypes/selinux.pp b/manifests/filetypes/selinux.pp
index 97140ec..dcafde3 100644
--- a/manifests/filetypes/selinux.pp
+++ b/manifests/filetypes/selinux.pp
@@ -7,7 +7,7 @@ define selinux_bool($bool) {
 }
 
 define semanage_fcontext($type) {
-    exec { "/usr/sbin/semanage fcontext -a -t $type '$name'; /sbin/restorecon -R `/usr/bin/dirname '$name' | /bin/sed 's/(//'`":
+    exec { "/usr/sbin/semanage fcontext -a -t $type '$name'; /sbin/restorecon -R `/usr/bin/dirname '$name/' | /bin/sed 's/(.*//'`":
         unless => "/usr/sbin/matchpathcon `/usr/bin/dirname '$name' | /bin/sed 's/(//'` | grep -qe $type",
         cwd => '/',
     }
-- 
1.5.5.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]