From 091eca9bbfe09099958e1454d6c3774cebb3c14a Mon Sep 17 00:00:00 2001 From: INSUN PYO Date: Tue, 7 Aug 2018 09:25:45 +0900 Subject: Add a new feature-namespace rpm Signed-off-by: INSUN PYO Change-Id: Ib89713829adabf193cf8ea51169467e9c3a20fdd --- packaging/system-plugin.spec | 17 +++++++++++++++++ units/namespace.conf | 2 ++ 2 files changed, 19 insertions(+) create mode 100644 units/namespace.conf diff --git a/packaging/system-plugin.spec b/packaging/system-plugin.spec index 78fd80a..2bf9e5e 100644 --- a/packaging/system-plugin.spec +++ b/packaging/system-plugin.spec @@ -101,6 +101,14 @@ BuildArch: noarch %description feature-image-reduction This package provides system configuration files for reducing image size. +%package feature-namespace +Summary: System configuration files for namespace separation +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description feature-namespace +This package provides namespace separation of user sessions. + %package config-env-headless Summary: System configuration files for headless images Requires: %{name} = %{version}-%{release} @@ -235,6 +243,10 @@ ln -s ../opt-usr.mount %{buildroot}%{_unitdir}/local-fs.target.wants/opt-usr.mou ln -s ../wait-mount@.service %{buildroot}%{_unitdir}/local-fs.target.wants/wait-mount@opt-usr.service ln -s ../wait-mount@.service %{buildroot}%{_userunitdir}/basic.target.wants/wait-mount@opt-usr.service +# namespace +mkdir -p %{buildroot}%{_unitdir}/user@.service.d +install -m 644 units/namespace.conf %{buildroot}%{_unitdir}/user@.service.d/ + %clean rm -rf %{buildroot} @@ -349,6 +361,11 @@ rm -f %{_bindir}/dbus-uuidgen # platform/upstream/e2fsprogs rm -f %{_sbindir}/e4crypt +%files feature-namespace +%manifest %{name}.manifest +%license LICENSE.Apache-2.0 +%{_unitdir}/user@.service.d/namespace.conf + %files config-env-headless %manifest %{name}.manifest %license LICENSE.Apache-2.0 diff --git a/units/namespace.conf b/units/namespace.conf new file mode 100644 index 0000000..b422d60 --- /dev/null +++ b/units/namespace.conf @@ -0,0 +1,2 @@ +[Service] +MountFlags=slave -- cgit v1.2.3