|
|
9be7e22 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
9be7e22 |
#
|
|
|
9be7e22 |
# Makefile of /CoreOS/selinux-policy/Regression/numad-and-similar
|
|
|
9be7e22 |
# Description: SELinux interferes with numad and related programs
|
|
|
9be7e22 |
# Author: Milos Malik <mmalik@redhat.com>
|
|
|
9be7e22 |
#
|
|
|
9be7e22 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
9be7e22 |
#
|
|
|
9be7e22 |
# Copyright (c) 2021 Red Hat, Inc. All rights reserved.
|
|
|
9be7e22 |
#
|
|
|
9be7e22 |
# This copyrighted material is made available to anyone wishing
|
|
|
9be7e22 |
# to use, modify, copy, or redistribute it subject to the terms
|
|
|
9be7e22 |
# and conditions of the GNU General Public License version 2.
|
|
|
9be7e22 |
#
|
|
|
9be7e22 |
# This program is distributed in the hope that it will be
|
|
|
9be7e22 |
# useful, but WITHOUT ANY WARRANTY; without even the implied
|
|
|
9be7e22 |
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
9be7e22 |
# PURPOSE. See the GNU General Public License for more details.
|
|
|
9be7e22 |
#
|
|
|
9be7e22 |
# You should have received a copy of the GNU General Public
|
|
|
9be7e22 |
# License along with this program; if not, write to the Free
|
|
|
9be7e22 |
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
|
9be7e22 |
# Boston, MA 02110-1301, USA.
|
|
|
9be7e22 |
#
|
|
|
9be7e22 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
9be7e22 |
|
|
|
9be7e22 |
export TEST=/CoreOS/selinux-policy/Regression/numad-and-similar
|
|
|
9be7e22 |
export TESTVERSION=1.0
|
|
|
9be7e22 |
|
|
|
9be7e22 |
BUILT_FILES=
|
|
|
9be7e22 |
|
|
|
9be7e22 |
FILES=$(METADATA) runtest.sh Makefile PURPOSE
|
|
|
9be7e22 |
|
|
|
9be7e22 |
.PHONY: all install download clean
|
|
|
9be7e22 |
|
|
|
9be7e22 |
run: $(FILES) build
|
|
|
9be7e22 |
./runtest.sh
|
|
|
9be7e22 |
|
|
|
9be7e22 |
build: $(BUILT_FILES)
|
|
|
9be7e22 |
chmod a+x runtest.sh
|
|
|
9be7e22 |
chcon -t bin_t runtest.sh
|
|
|
9be7e22 |
|
|
|
9be7e22 |
clean:
|
|
|
9be7e22 |
rm -f *~ $(BUILT_FILES)
|
|
|
9be7e22 |
|
|
|
9be7e22 |
include /usr/share/rhts/lib/rhts-make.include
|
|
|
9be7e22 |
|
|
|
9be7e22 |
$(METADATA): Makefile
|
|
|
9be7e22 |
@echo "Owner: Milos Malik <mmalik@redhat.com>" > $(METADATA)
|
|
|
9be7e22 |
@echo "Name: $(TEST)" >> $(METADATA)
|
|
|
9be7e22 |
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
|
|
|
9be7e22 |
@echo "Path: $(TEST_DIR)" >> $(METADATA)
|
|
|
9be7e22 |
@echo "Description: SELinux interferes with numad and related programs" >> $(METADATA)
|
|
|
9be7e22 |
@echo "Type: Regression" >> $(METADATA)
|
|
|
9be7e22 |
@echo "TestTime: 10m" >> $(METADATA)
|
|
|
9be7e22 |
@echo "RunFor: selinux-policy" >> $(METADATA)
|
|
|
9be7e22 |
@echo "RunFor: numad" >> $(METADATA)
|
|
|
9be7e22 |
@echo "Requires: audit" >> $(METADATA)
|
|
|
9be7e22 |
@echo "Requires: expect" >> $(METADATA)
|
|
|
9be7e22 |
@echo "Requires: grep" >> $(METADATA)
|
|
|
9be7e22 |
@echo "Requires: initscripts" >> $(METADATA)
|
|
|
9be7e22 |
@echo "Requires: libselinux" >> $(METADATA)
|
|
|
9be7e22 |
@echo "Requires: libselinux-utils" >> $(METADATA)
|
|
|
9be7e22 |
@echo "Requires: numad" >> $(METADATA)
|
|
|
9be7e22 |
@echo "Requires: policycoreutils" >> $(METADATA)
|
|
|
9be7e22 |
@echo "Requires: procps" >> $(METADATA)
|
|
|
9be7e22 |
@echo "Requires: selinux-policy" >> $(METADATA)
|
|
|
9be7e22 |
@echo "Requires: setools" >> $(METADATA)
|
|
|
9be7e22 |
@echo "Requires: setools-console" >> $(METADATA)
|
|
|
9be7e22 |
@echo "RhtsRequires: library(selinux-policy/common)" >> $(METADATA)
|
|
|
9be7e22 |
@echo "Priority: Normal" >> $(METADATA)
|
|
|
9be7e22 |
@echo "License: GPLv2" >> $(METADATA)
|
|
|
9be7e22 |
@echo "Confidential: no" >> $(METADATA)
|
|
|
9be7e22 |
@echo "Destructive: no" >> $(METADATA)
|
|
|
9be7e22 |
@echo "Environment: AVC_ERROR=+no_avc_check" >> $(METADATA)
|
|
|
9be7e22 |
@echo "Architectures: i386 ppc64 x86_64" >> $(METADATA)
|
|
|
9be7e22 |
@echo "Releases: -RHEL4 -RHELServer5 -RHELClient5" >> $(METADATA)
|
|
|
9be7e22 |
@echo "Bug: 807157" >> $(METADATA) # RHEL-6
|
|
|
9be7e22 |
@echo "Bug: 857086" >> $(METADATA) # RHEL-7
|
|
|
9be7e22 |
@echo "Bug: 1074449" >> $(METADATA) # RHEL-7
|
|
|
9be7e22 |
@echo "Bug: 1118515" >> $(METADATA) # RHEL-7
|
|
|
9be7e22 |
|
|
|
9be7e22 |
rhts-lint $(METADATA)
|
|
|
9be7e22 |
|