Re: [PATCH] policycoreutils/scripts/fixfiles: drop unused functions
Stephen Smalley <[email protected]> Fri, 24 Jul 2026 10:18:18 -0400
| Newsgroups | org.kernel.vger.selinux |
|---|---|
| Message-ID | <CAEjxPJ4AfZS9dVUmC2nCm9A0=wAeErZ+UGaJOR2HzPghL8BXyA@mail.gmail.com> |
On Mon, Jul 20, 2026 at 2:38 PM Stephen Smalley <[email protected]> wrote: > > After "policycoreutils/scripts/fixfiles: drop /tmp cleanup", these > functions are no long used, so we can remove them. > > Signed-off-by: Stephen Smalley <[email protected]> Merged. > --- > policycoreutils/scripts/fixfiles | 17 ----------------- > 1 file changed, 17 deletions(-) > > diff --git a/policycoreutils/scripts/fixfiles b/policycoreutils/scripts/fixfiles > index b5f193e1..493c86f9 100755 > --- a/policycoreutils/scripts/fixfiles > +++ b/policycoreutils/scripts/fixfiles > @@ -66,23 +66,6 @@ for i in $FS; do > done > } > > -# > -# Get the default label returned from the kernel for a file with a label the > -# kernel does not understand > -# > -get_undefined_type() { > - SELINUXMNT=`grep selinuxfs /proc/self/mountinfo | head -1 | awk '{ print $5 }'` > - cat ${SELINUXMNT}/initial_contexts/unlabeled | secon -t > -} > - > -# > -# Get the default label for a file without a label > -# > -get_unlabeled_type() { > - SELINUXMNT=`grep selinuxfs /proc/self/mountinfo | head -1 | awk '{ print $5 }'` > - cat $SELINUXMNT/initial_contexts/file | secon -t > -} > - > exclude_dirs_from_relabelling() { > exclude_from_relabelling= > if [ -e /etc/selinux/fixfiles_exclude_dirs ] > -- > 2.55.0 >