Bug 469912 - openssh tests inconsistent
Summary: openssh tests inconsistent
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: sectool
Version: 10
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Peter Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-11-04 18:10 UTC by Daniel Qarras
Modified: 2009-01-07 09:30 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-01-07 09:30:09 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Daniel Qarras 2008-11-04 18:10:07 UTC
Description of problem:
root@localhost:~# sectool --hint --level 3 --run openssh --debug
openssh ->
    Info: Checking default openssh-server configuration
    Warning: Wrong permissions on directory: "/var/empty/sshd" (directory used by sshd during privilege separation in the pre-authentication phase, required permissions are 711)
    openssh: WARNING

root@localhost:~# chmod 711 /var/empty/sshd
root@localhost:~# sectool --hint --level 3 --run openssh --debug
openssh ->
    Info: Checking default openssh-server configuration
    openssh: PASS

root@localhost:~# sectool --hint --level 5 --run openssh --debug
openssh ->
    Info: Checking default openssh-server configuration
    Warning: Wrong permissions on directory: "/var/empty/sshd" (directory used by sshd during privilege separation in the pre-authentication phase, required permissions are 700)
    openssh: WARNING

Comment 1 Tom "spot" Callaway 2008-11-06 20:16:19 UTC
This doesn't seem like a bug...

From the manpage:
LEVELS
 sectool has a concept of levels that define how strict the checks should 
 be. The levels range from 1 (low security) to 5 (paranoid). The default level 
 is 3 (a typical computer connected directly to the Internet). The levels could 
 be either specified by integer or the level name. The name for different levels 
 are as follows:

              level   name
              -----   -----
              1       Naive
              2       Desktop
              3       Network
              4       Server
              5       Paranoid

... So, when you pass --level 3, it requires permissions of 711 on /var/empty/sshd, but when you pass --level 5, it requires permissions of 700 (dropping the read permission). This indeed would be a fair description of the difference between "Networked" security and "Paranoid" security.

My guess is that you didn't notice that the permissions were different between the check levels...

Lifting F10Blocker. I'll let the maintainer decide whether there is a bug here or not and reapply the blocker as needed.

Comment 2 Daniel Kopeček 2008-11-18 15:04:34 UTC
Fixed in git:
 - print an info message if the permissions are stricter than required

Comment 3 Fedora Update System 2008-11-24 10:45:31 UTC
sectool-0.9.2-1 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/sectool-0.9.2-1

Comment 4 Bug Zapper 2008-11-26 04:45:46 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 10 development cycle.
Changing version to '10'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 5 Fedora Update System 2008-11-26 06:16:23 UTC
sectool-0.9.2-1 has been pushed to the Fedora 10 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update sectool'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/f10/FEDORA-2008-10272

Comment 6 Daniel Qarras 2008-11-26 22:56:31 UTC
This problematic with the proposed update:

root@localhost:~# chmod 700 /var/empty/sshd
root@localhost:~# sectool --hint --level 3 --run openssh --debug
openssh ->
    Info: Checking default openssh-server configuration
    Warning: Wrong permissions on directory "/var/empty/sshd": 700 (directory used by sshd during privilege separation in the pre-authentication phase, required permissions are 711)
    openssh: WARNING

root@localhost:~#

Comment 7 Fedora Update System 2008-12-01 23:28:18 UTC
sectool-0.9.2-2 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/sectool-0.9.2-2

Comment 8 Fedora Update System 2008-12-03 01:25:42 UTC
sectool-0.9.2-2 has been pushed to the Fedora 10 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update sectool'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2008-10649

Comment 9 Daniel Qarras 2008-12-03 17:09:04 UTC
There is still WARNING, perhaps INFO would be better as there's is no harm to have these stricter permissions?

Comment 10 Fedora Update System 2009-01-07 09:29:51 UTC
sectool-0.9.2-2 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.


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