public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [tests/selinux] pr775-checkpolicy-revdeps: Drop libselinux/selinux_restorecon
@ 2026-09-11 13:17 Petr Lautrbach
0 siblings, 0 replies; only message in thread
From: Petr Lautrbach @ 2026-09-11 13:17 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : tests/selinux
Branch : pr775-checkpolicy-revdeps
Commit : 67e081a7ad4e7819036e86193e236754c0a7a398
Author : Petr Lautrbach <plautrba@redhat.com>
Date : 2018-10-15T13:58:43+02:00
Stats : +0/-147 in 4 file(s)
URL : https://src.fedoraproject.org/tests/selinux/c/67e081a7ad4e7819036e86193e236754c0a7a398?branch=pr775-checkpolicy-revdeps
Log:
Drop libselinux/selinux_restorecon
selinux_restorecon utility was dropped in [1] and it's not used and installed
any more.
[1]
https://github.com/SELinuxProject/selinux/commit/ef95c6ddf9498d05e94397af52e272856c933f11
---
diff --git a/libselinux/selinux_restorecon/Makefile b/libselinux/selinux_restorecon/Makefile
deleted file mode 100644
index 4903787..0000000
--- a/libselinux/selinux_restorecon/Makefile
+++ /dev/null
@@ -1,64 +0,0 @@
-# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-#
-# Makefile of /CoreOS/libselinux/Sanity/selinux_restorecon
-# Description: Does selinux_restorecon work correctly?
-# Author: Milos Malik <mmalik@redhat.com>
-#
-# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-#
-# Copyright (c) 2016 Red Hat, Inc.
-#
-# This copyrighted material is made available to anyone wishing
-# to use, modify, copy, or redistribute it subject to the terms
-# and conditions of the GNU General Public License version 2.
-#
-# This program is distributed in the hope that it will be
-# useful, but WITHOUT ANY WARRANTY; without even the implied
-# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
-# PURPOSE. See the GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public
-# License along with this program; if not, write to the Free
-# Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
-# Boston, MA 02110-1301, USA.
-#
-# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-export TEST=/CoreOS/libselinux/Sanity/selinux_restorecon
-export TESTVERSION=1.0
-
-BUILT_FILES=
-
-FILES=$(METADATA) runtest.sh Makefile PURPOSE
-
-.PHONY: all install download clean
-
-run: $(FILES) build
- ./runtest.sh
-
-build: $(BUILT_FILES)
- test -x runtest.sh || chmod a+x runtest.sh
-
-clean:
- rm -f *~ $(BUILT_FILES)
-
-include /usr/share/rhts/lib/rhts-make.include
-
-$(METADATA): Makefile
- @echo "Owner: Milos Malik <mmalik@redhat.com>" > $(METADATA)
- @echo "Name: $(TEST)" >> $(METADATA)
- @echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
- @echo "Path: $(TEST_DIR)" >> $(METADATA)
- @echo "Description: Does selinux_restorecon work correctly?" >> $(METADATA)
- @echo "Type: Sanity" >> $(METADATA)
- @echo "TestTime: 10m" >> $(METADATA)
- @echo "RunFor: libselinux" >> $(METADATA)
- @echo "Requires: libselinux libselinux-utils attr" >> $(METADATA)
- @echo "Priority: Normal" >> $(METADATA)
- @echo "License: GPLv2" >> $(METADATA)
- @echo "Confidential: no" >> $(METADATA)
- @echo "Destructive: no" >> $(METADATA)
- @echo "Releases: -RHEL4 -RHEL6 -RHELClient5 -RHELServer5" >> $(METADATA)
-
- rhts-lint $(METADATA)
-
diff --git a/libselinux/selinux_restorecon/PURPOSE b/libselinux/selinux_restorecon/PURPOSE
deleted file mode 100644
index 9ee17e1..0000000
--- a/libselinux/selinux_restorecon/PURPOSE
+++ /dev/null
@@ -1,5 +0,0 @@
-PURPOSE of /CoreOS/libselinux/Sanity/selinux_restorecon
-Author: Milos Malik <mmalik@redhat.com>
-
-Does selinux_restorecon work correctly? The program was added in RHEL-7.3.
-
diff --git a/libselinux/selinux_restorecon/main.fmf b/libselinux/selinux_restorecon/main.fmf
deleted file mode 100644
index bce2b00..0000000
--- a/libselinux/selinux_restorecon/main.fmf
+++ /dev/null
@@ -1 +0,0 @@
-path: /libselinux/selinux_restorecon
diff --git a/libselinux/selinux_restorecon/runtest.sh b/libselinux/selinux_restorecon/runtest.sh
deleted file mode 100755
index 05b813b..0000000
--- a/libselinux/selinux_restorecon/runtest.sh
+++ /dev/null
@@ -1,77 +0,0 @@
-#!/bin/bash
-# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
-# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-#
-# runtest.sh of /CoreOS/libselinux/Sanity/selinux_restorecon
-# Description: Does selinux_restorecon work correctly?
-# Author: Milos Malik <mmalik@redhat.com>
-#
-# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-#
-# Copyright (c) 2016 Red Hat, Inc.
-#
-# This copyrighted material is made available to anyone wishing
-# to use, modify, copy, or redistribute it subject to the terms
-# and conditions of the GNU General Public License version 2.
-#
-# This program is distributed in the hope that it will be
-# useful, but WITHOUT ANY WARRANTY; without even the implied
-# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
-# PURPOSE. See the GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public
-# License along with this program; if not, write to the Free
-# Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
-# Boston, MA 02110-1301, USA.
-#
-# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-# Include Beaker environment
-. /usr/share/beakerlib/beakerlib.sh || exit 1
-
-PACKAGE="libselinux"
-
-rlJournalStart
- rlPhaseStartSetup
- rlAssertRpm ${PACKAGE}
- rlAssertRpm ${PACKAGE}-utils
- rlPhaseEnd
-
- rlPhaseStartTest "valid options / combinations"
- rlRun "selinux_restorecon --help" 0-255
- for CUR_DIR in /boot /etc /opt /root /usr /var ; do
- rlRun "setfattr -x security.restorecon_last ${CUR_DIR}" 0,1
- rlRun "getfattr -m . -d ${CUR_DIR} | grep security.restorecon_last=" 1
- rlRun "selinux_restorecon -R -d -C ${CUR_DIR} 2>&1 | grep -i \"updated digest for.*${CUR_DIR}\"" 1
- rlRun "getfattr -m . -d ${CUR_DIR} | grep security.restorecon_last="
- rlRun "selinux_restorecon -R -v -d -C ${CUR_DIR} 2>&1 | grep -i \"updated digest for.*${CUR_DIR}\""
- done
- rlRun "chcon -u unconfined_u /root"
- rlRun "ls -dZ /root | grep unconfined_u:"
- rlRun "selinux_restorecon -R -v -d -C /root 2>&1 | grep -i relabeled" 1
- rlRun "ls -dZ /root | grep unconfined_u:"
- rlRun "selinux_restorecon -R -v -d -C -F /root 2>&1 | grep -i relabeled"
- rlRun "ls -dZ /root | grep system_u:"
- rlPhaseEnd
-
- rlPhaseStartTest "invalid options / combinations"
- rlRun "selinux_restorecon -v -P 2>&1 | grep -i \"mutually exclusive\""
- rlRun "selinux_restorecon -f 2>&1 | grep -i \"option requires an argument\""
- rlRun "selinux_restorecon -p 2>&1 | grep -i \"option requires an argument\""
- rlRun "selinux_restorecon /non-existent 2>&1 | grep -i \"No such file or directory\""
- rlPhaseEnd
-
- rlPhaseStartTest
- OUTPUT_FILE=`mktemp`
- rlRun "selinux_restorecon -R -v -C /root 2>&1 | tee ${OUTPUT_FILE}"
- rlRun "grep -q -e /sys/fs/selinux/ -e /sys/kernel/security/ ${OUTPUT_FILE}" 1
- rlRun "selinux_restorecon -R -v -C -r /root 2>&1 | tee ${OUTPUT_FILE}"
- rlRun "grep -q -e /sys/fs/selinux/ -e /sys/kernel/security/ ${OUTPUT_FILE}" 1
- rm -f ${OUTPUT_FILE}
- rlPhaseEnd
-
- rlPhaseStartCleanup
- rlPhaseEnd
-rlJournalPrintText
-rlJournalEnd
-
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-11 13:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-11 13:17 [tests/selinux] pr775-checkpolicy-revdeps: Drop libselinux/selinux_restorecon Petr Lautrbach
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox