Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 467902 - home_dirs FAIL when /home is empty not handled gracefully
Summary: home_dirs FAIL when /home is empty not handled gracefully
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: sectool
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Peter Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F10Target
TreeView+ depends on / blocked
 
Reported: 2008-10-21 16:21 UTC by Michael Cutler
Modified: 2008-10-22 12:44 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-10-22 12:44:15 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Michael Cutler 2008-10-21 16:21:53 UTC
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 12:44:15 UTC
fixed sectool-0.9.1


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