rpms/icecream/devel icecream.fc, 1.2, 1.3 icecream.spec, 1.22, 1.23 icecream.te, 1.8, 1.9 initscript-scheduler, 1.1, 1.2
Michal Schmidt
michich at fedoraproject.org
Fri Aug 14 12:51:28 UTC 2009
- Previous message (by thread): rpms/rednotebook/devel .cvsignore, 1.17, 1.18 rednotebook.spec, 1.17, 1.18 sources, 1.17, 1.18
- Next message (by thread): rpms/imsettings/devel imsettings-log.patch, NONE, 1.1 imsettings.spec, 1.33, 1.34
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: michich
Update of /cvs/pkgs/rpms/icecream/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv32350
Modified Files:
icecream.fc icecream.spec icecream.te initscript-scheduler
Log Message:
* Fri Aug 14 2009 Michal Schmidt <mschmidt at redhat.com> 0.9.4-3
- Create the logfile for the scheduler in the initscript.
- Allow the scheduler to write to the log in the SELinux policy (BZ#517251).
Index: icecream.fc
===================================================================
RCS file: /cvs/pkgs/rpms/icecream/devel/icecream.fc,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -p -r1.2 -r1.3
--- icecream.fc 16 Feb 2009 13:54:52 -0000 1.2
+++ icecream.fc 14 Aug 2009 12:51:28 -0000 1.3
@@ -3,3 +3,4 @@
/var/cache/icecream(/.*)? gen_context(system_u:object_r:iceccd_cache_t,s0)
/var/log/iceccd -- gen_context(system_u:object_r:iceccd_log_t,s0)
/usr/sbin/icecc-scheduler -- gen_context(system_u:object_r:icecc_scheduler_exec_t,s0)
+/var/log/icecc[-_]scheduler -- gen_context(system_u:object_r:icecc_scheduler_log_t,s0)
Index: icecream.spec
===================================================================
RCS file: /cvs/pkgs/rpms/icecream/devel/icecream.spec,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -p -r1.22 -r1.23
--- icecream.spec 25 Jul 2009 03:06:37 -0000 1.22
+++ icecream.spec 14 Aug 2009 12:51:28 -0000 1.23
@@ -11,7 +11,7 @@
Name: icecream
Version: 0.9.4
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Distributed compiler
Group: Development/Tools
@@ -233,6 +233,10 @@ rm -rf %{buildroot}
%{_libdir}/pkgconfig/icecc.pc
%changelog
+* Fri Aug 14 2009 Michal Schmidt <mschmidt at redhat.com> 0.9.4-3
+- Create the logfile for the scheduler in the initscript.
+- Allow the scheduler to write to the log in the SELinux policy (BZ#517251).
+
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.9.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
Index: icecream.te
===================================================================
RCS file: /cvs/pkgs/rpms/icecream/devel/icecream.te,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -p -r1.8 -r1.9
--- icecream.te 5 Apr 2009 23:00:36 -0000 1.8
+++ icecream.te 14 Aug 2009 12:51:28 -0000 1.9
@@ -41,6 +41,9 @@ type icecc_scheduler_t;
type icecc_scheduler_exec_t;
init_daemon_domain(icecc_scheduler_t, icecc_scheduler_exec_t)
+type icecc_scheduler_log_t;
+logging_log_file(icecc_scheduler_log_t)
+
########################################
#
# iceccd_untrusted declarations
@@ -188,6 +191,9 @@ can_exec(iceccd_untrusted_t, iceccd_cach
allow icecc_scheduler_t self:tcp_socket create_stream_socket_perms;
allow icecc_scheduler_t self:udp_socket create_socket_perms;
+manage_files_pattern(icecc_scheduler_t, icecc_scheduler_log_t, icecc_scheduler_log_t)
+logging_log_filetrans(icecc_scheduler_t, icecc_scheduler_log_t, file)
+
corenet_all_recvfrom_unlabeled(icecc_scheduler_t)
corenet_all_recvfrom_netlabel(icecc_scheduler_t)
corenet_tcp_sendrecv_generic_if(icecc_scheduler_t)
Index: initscript-scheduler
===================================================================
RCS file: /cvs/pkgs/rpms/icecream/devel/initscript-scheduler,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- initscript-scheduler 21 Nov 2007 00:32:33 -0000 1.1
+++ initscript-scheduler 14 Aug 2009 12:51:28 -0000 1.2
@@ -30,15 +30,16 @@ start() {
[ -x $exec ] || exit 5
[ -f $config ] || exit 6
echo -n $"Starting distributed compiler scheduler: "
- params=""
+ netname=
if [ -n "$ICECREAM_NETNAME" ] ; then
- params="$params -n $ICECREAM_NETNAME"
+ netname="-n $ICECREAM_NETNAME"
fi
logfile=${ICECREAM_SCHEDULER_LOG_FILE:-/var/log/icecc-scheduler}
- params="$params -l $logfile"
-# touch "$logfile"
-# chown icecream:icecream $logfile
- daemon --user icecream --check $service $exec -d $params
+ touch "$logfile"
+ chown icecream:icecream "$logfile"
+ chmod 0640 "$logfile"
+ [ -x /sbin/restorecon ] && /sbin/restorecon "$logfile"
+ daemon --user icecream --check $service $exec -d -l "$logfile" $netname
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch $lockfile
- Previous message (by thread): rpms/rednotebook/devel .cvsignore, 1.17, 1.18 rednotebook.spec, 1.17, 1.18 sources, 1.17, 1.18
- Next message (by thread): rpms/imsettings/devel imsettings-log.patch, NONE, 1.1 imsettings.spec, 1.33, 1.34
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list