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