Bug 157182 - Missing option to fixfiles in rc.sysinit
Missing option to fixfiles in rc.sysinit
Product: Fedora
Classification: Fedora
Component: initscripts (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
Brock Organ
Depends On:
  Show dependency treegraph
Reported: 2005-05-08 15:25 EDT by Mathieu Chouquet-Stringer
Modified: 2014-03-16 22:53 EDT (History)
2 users (show)

See Also:
Fixed In Version: 8.11-1
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-05-09 16:08:25 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Mathieu Chouquet-Stringer 2005-05-08 15:25:16 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050504 Galeon/1.3.20

Description of problem:
On reboot, if /.autorelabel exists or if the kernel command line contains autorelabel, rc.sysinit will call the relabel_selinux function and will run fixfiles with the following options:
/sbin/fixfiles -F relabel > /dev/null 2>&1

Issue is the command line arguments for fixfiles have changed between FC3 (policycoreutils-1.18.1-2.12) and FC4T2 (policycoreutils-1.23.7-1):
* in FC3, the man page reads:
-F     Don’t prompt for removal of /tmp directory.

* while in FC4T2:
-F     Force  reset  of  context to match file_context for customizable files
-f     Don’t prompt for removal of /tmp directory.

Bottom line is, if you boot with autorelabel or /.autorelabel, fixfiles will prompt you for /tmp relabeling. STDOUT and STDERR being redirected to /dev/null, one won't see the actual message...

Simple fix is to add -f to the command line (not sure if -F is intended there).

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. touch /.autorelabel or pass autorelabel to the kernel
2. (re)boot
3. wait for fixfiles

Additional info:
Comment 1 Bill Nottingham 2005-05-09 14:54:20 EDT
Will be in 8.11-1. Dan, is this going to be needed for other releases - is the
policycoreutils change going to be backported?
Comment 2 Daniel Walsh 2005-05-09 16:05:08 EDT
Eventually.  For U2 probably.  I can avoid this change, if necessary.  We
changed the -F to be consistant with restorecon and setfiles.  Didn't know it
was being used.  Sorry.


Note You need to log in before you can comment on or make changes to this bug.