diff options
-rw-r--r-- | packaging/default-ac-domains.changes | 3 | ||||
-rw-r--r-- | packaging/default-ac-domains.manifest | 24 | ||||
-rw-r--r-- | packaging/default-ac-domains.spec | 26 |
3 files changed, 53 insertions, 0 deletions
diff --git a/packaging/default-ac-domains.changes b/packaging/default-ac-domains.changes new file mode 100644 index 0000000..3e9d2a5 --- /dev/null +++ b/packaging/default-ac-domains.changes @@ -0,0 +1,3 @@ +* Thu Jun 04 2013 Elena Reshetova <elena.reshetova@intel.com> +- Initial package creation for domains System and User + diff --git a/packaging/default-ac-domains.manifest b/packaging/default-ac-domains.manifest new file mode 100644 index 0000000..3dd15e7 --- /dev/null +++ b/packaging/default-ac-domains.manifest @@ -0,0 +1,24 @@ +<manifest> + <define> + <domain name="System"/> + <provide> + <label name="System::Shared"/> + </provide> + <request> + <smack request="System::Shared" type="rwxat"/> + </request> + </define> + <define> + <domain name="User"/> + <request> + <smack request="System" type="w"/> + <smack request="System::Shared" type="rx"/> + </request> + <permit> + <smack permit="System" type="w"/> + </permit> + </define> + <request> + <domain name="_"/> + </request> +</manifest> diff --git a/packaging/default-ac-domains.spec b/packaging/default-ac-domains.spec new file mode 100644 index 0000000..88d6f92 --- /dev/null +++ b/packaging/default-ac-domains.spec @@ -0,0 +1,26 @@ +Name: default-ac-domains +Version: 0.1 +Release: 1 +Group: Security/Access Control +License: GPL-2.0 +Summary: The definition of default ac domains +BuildArch: noarch +Source0: %{name}-%{version}.tar.gz +Source1001: default-ac-domains.manifest + +%description +The package provides a definition for the default set of ac domains +with the corresponding Smack rules between them + +%prep +%setup -q + +%build +cp %{SOURCE1001} . + +%install + +%files +%defattr(-,root,root) +%manifest default-ac-domains.manifest + |