diff options
author | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2009-07-11 19:08:23 +0200 |
---|---|---|
committer | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2009-07-11 19:08:23 +0200 |
commit | b4aca12257b11ad464867d1639a092fc4d0d16ae (patch) | |
tree | a3803cd242eddc60229c6403e9cf4b2317b41026 | |
parent | 8ccc181aa87d2030ef585b15b24c37da53c66bfe (diff) | |
download | gps-devices-package-b4aca12257b11ad464867d1639a092fc4d0d16ae.tar.gz gps-devices-package-b4aca12257b11ad464867d1639a092fc4d0d16ae.tar.xz gps-devices-package-b4aca12257b11ad464867d1639a092fc4d0d16ae.zip |
HACK: Ship "targeted" SELinux policy modules
-rw-r--r-- | gpsd-devices.spec | 8 |
1 files changed, 8 insertions, 0 deletions
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 |