summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packaging/99-dm-tizen.rules1
-rw-r--r--packaging/device-mapper.spec2
2 files changed, 3 insertions, 0 deletions
diff --git a/packaging/99-dm-tizen.rules b/packaging/99-dm-tizen.rules
new file mode 100644
index 0000000..09dc8e0
--- /dev/null
+++ b/packaging/99-dm-tizen.rules
@@ -0,0 +1 @@
+KERNEL=="device-mapper", NAME="mapper/control", SECLABEL{smack}="*", RUN+="/bin/chsmack -a * /dev/mapper"
diff --git a/packaging/device-mapper.spec b/packaging/device-mapper.spec
index dc8f2c8..454e841 100644
--- a/packaging/device-mapper.spec
+++ b/packaging/device-mapper.spec
@@ -9,6 +9,7 @@ Summary: Device mapper utility
Url: http://sources.redhat.com/dm
Group: Base/Device Management
Source0: ftp://sources.redhat.com/pub/lvm2/lvm2-v%{lvm2_version}.tar.gz
+Source101: 99-dm-tizen.rules
Source1001: device-mapper.manifest
BuildRequires: pkgconfig(libsystemd)
@@ -61,6 +62,7 @@ make CFLAGS="-fPIC" LDFLAGS="-pie" V=1 \
%install
make install_device-mapper DESTDIR=%{buildroot} usrlibdir=%{buildroot}/usr/%{_lib}
sed -i 's/ (.*)//g' %{buildroot}%{_libdir}/pkgconfig/*.pc
+install -m644 99-dm-tizen.rules %{buildroot}/%{udev_dir}/99-dm-tizen.rules
rm -rf %{buildroot}/usr/share/man