Bug 467902 - home_dirs FAIL when /home is empty not handled gracefully
home_dirs FAIL when /home is empty not handled gracefully
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: sectool (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Peter Vrabec
Fedora Extras Quality Assurance
:
Depends On:
Blocks: F10Target
  Show dependency treegraph
 
Reported: 2008-10-21 12:21 EDT by Michael Cutler
Modified: 2008-10-22 08:44 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-10-22 08:44:15 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Michael Cutler 2008-10-21 12:21:53 EDT
Description of problem:

  Bit of an edge case, but running "sectool --level 1" on a freshly installed system with no regular users and an empty /home directory produced the following message:

home_dirs ->
    Warning: This is a first run of the test. Some parts of audit are skipped.
    Failure: stat -f "MODE:%6p UID:%6u GID: %g   " "" failed.
    home_dirs: FAIL

And on repeating the test,

home_dirs ->
    Failure: stat -f "MODE:%6p UID:%6u GID: %g   " "" failed.
    home_dirs: FAIL



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

  sectool-0.9.0-1.fc10.i386

How reproducible:

  Every time

Steps to Reproduce:
1. Fresh install from FC10 snap2 dvd
2. Yum update to sectool-0.9.0-1.fc10.i386 if necessary
3. Ensure there are no 'normal' users and /home is empty
4. Run "sectool --level 1"
  
Actual results:

  sectools failed home_dirs

Expected results:

  home_dirs should be skipped or passed if /home is empty and there are no normal users.

Additional info:
Comment 1 Peter Vrabec 2008-10-22 08:44:15 EDT
fixed sectool-0.9.1

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