public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Petr Lautrbach <plautrba@redhat.com>
To: git-commits@fedoraproject.org
Subject: [tests/selinux] pr775-checkpolicy-revdeps: Drop libselinux/selinux_restorecon
Date: Fri, 11 Sep 2026 13:17:27 GMT	[thread overview]
Message-ID: <178913264730.1.15087533149697424832.tests-selinux-67e081a7ad4e@fedoraproject.org> (raw)

            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
-

                 reply	other threads:[~2026-09-11 13:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178913264730.1.15087533149697424832.tests-selinux-67e081a7ad4e@fedoraproject.org \
    --to=plautrba@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox