From b4aca12257b11ad464867d1639a092fc4d0d16ae Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Sat, 11 Jul 2009 19:08:23 +0200 Subject: HACK: Ship "targeted" SELinux policy modules --- gpsd-devices.spec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gpsd-devices.spec b/gpsd-devices.spec index 1ca9d41..f3b99fa 100644 --- a/gpsd-devices.spec +++ b/gpsd-devices.spec @@ -53,6 +53,10 @@ install %{SOURCE0} "%{buildroot}/usr/share/hal/fdi/information/" install -d "%{buildroot}/usr/share/hal/fdi/policy" install %{SOURCE1} "%{buildroot}/usr/share/hal/fdi/policy/" +# FIXME: HACK! +install -d "%{buildroot}/usr/share/selinux/targeted" +install gps-device.pp gpsd-devices.pp "%{buildroot}/usr/share/selinux/targeted/" + %pre getent group gps >/dev/null || groupadd -r gps @@ -60,6 +64,7 @@ exit 0 %post +semodule -i gps_device gpsd_devices mkfifo "%{_datadir}/gpsd/dummy-device" chown root.gps "%{_datadir}/gpsd/dummy-device" chmod 0644 "%{_datadir}/gpsd/dummy-device" @@ -67,6 +72,7 @@ chmod 0644 "%{_datadir}/gpsd/dummy-device" %preun rm -f "%{_datadir}/gpsd/dummy-device" +semodule -r gpsd_devices gps_device %clean @@ -78,6 +84,8 @@ rm -rf "%{buildroot}" %doc README %{_datadir}/hal/fdi/information/gps-devices-information.fdi %{_datadir}/hal/fdi/policy/gpsd-devices-policy.fdi +%{_datadir}/selinux/targeted/gps-device.pp +%{_datadir}/selinux/targeted/gpsd-devices.pp %changelog -- cgit