File compartm.spec of Package compartm

# spec file for package compartm
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           compartm
Version:        1.1
Release:        0
Summary:        A Wrapper to Securely Run Insecure or Untrusted Programs
License:        GPL-2.0+
Group:          Productivity/Security
Source:         compartment-%version.tar.gz
Patch0:         compartment-%version.diff
Patch1:         compartment-%version-prctl.patch
Patch2:         compartment-%version-nochown.patch
Patch3:         compartment-%version-format.dif
Patch4:         compartment-%version-newcaps.dif
Patch5:         compartment-%version-envp.dif
Patch6:         compartment-%version-va_copy.dif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Compartment provides all possibilities (chroot, kernel capabilities)
for securely running insecure or untrusted programs. It provides all
necessary options to fine-tune the security tightening process as

    Marc Heuse <>

%define kversion %(uname -r)

%setup -n compartment-%version
%patch0 -p1
%patch1 -p1 -b .prctl

make %{?_smp_mflags}

mkdir -p $RPM_BUILD_ROOT/usr/sbin


openSUSE Build Service is sponsored by