delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/07/31/03:50:20

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Thu, 31 Jul 2008 09:50:01 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: CSIH file permission tests on non-NTFS broken (was Re: ssh-host-config script fails)
Message-ID: <20080731075001.GA22385@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <2B02F35EEE21064E9EF7F377F7F37D7402949615 AT ADMAIL01 DOT ICSDMN DOT local> <20080723163450 DOT GY5251 AT calimero DOT vinschen DOT de> <20080724092249 DOT GC28166 AT calimero DOT vinschen DOT de> <20080730124957 DOT GN29031 AT calimero DOT vinschen DOT de> <48914567 DOT 3010100 AT cwilson DOT fastmail DOT fm>
MIME-Version: 1.0
In-Reply-To: <48914567.3010100@cwilson.fastmail.fm>
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Jul 31 00:53, Charles Wilson wrote:
> Corinna Vinschen wrote:
>>>> Eeek!  You're using FAT32 on a NT based OS?  This isn't such a good
>>>> idea, actually.  There's no security and no permission settings on FAT.
>>>> The csih script seems to miss the fact that the directory is on a
>>>> non-NTFS drive which isn't capable of setting permissions.  Given that
>>>> you're installing ssh, which is a paranoid secure playing package,
>>>> that's actually a good idea.  Ever thought of running convert.exe on
>>>> your drive? ;) 
>>>> Nevertheless that should be changed in csih.
>>> Could you have a look into this, please?
>
> I'm not sure what you think csih should do, here.  The whole point is that 
> we know services require certain things of the system directories, or they 
> won't work.  Are you suggesting that csih just ignore that, and pretend to 
> correctly install sshd on a FAT32 system?
>
> Only to have sshd itself fail for some hard-for-a-newbie-to-diagnose 
> reason?

Sshd won't fail on FAT32 since it checks the file system capbailities
before checking for strict permissions.

> Perhaps, rather than checking:
>    # daemons need access to subdirs, so need traverse permissions...
>    if ! csih_check_dir_perms "${LOCALSTATEDIR}" d..x..x..x ; then ERROR
>[...]
> in _csih_setup() (which is called by the main csih entry points), those 
> permission checks could be delegated to the foo_install scripts which know 
> more about their own specific requirements, rather than the fairly general 
> requirements above?
>
> Or are you saying that csih should still perform those general checks, but 
> first:
>    if the drive on which ${LOCALSTATEDIR} lives is
>      (1) FAT32
>      (2) nontsec
>      (3) on a server and nosmbntsec
>    then issue a big fat warning, and in that case skip the
>    permissions tests? What about 1.7 and the acl flag?

A check for non-NTFS should be sufficient for now, IMHO.  It's bad
enough to run an OS on such an insecure file system, but it's hard to
enforce upgrading to NTFS.  However, ntsec and smbntsec are dead in the
water and I don't think we should encourage usage of noacl more than
necessary, especially for sensitive services.

> ASIDE:
>    csih_check_basic_mounts
>    csih_check_sys_mount
> might need to be revisited for 1.7
>
> FYI, the other changes to csih that you requested are actually rather more 
> involved than you would suspect.  I've worked on it a bit, but haven't been 
> able to test it yet.  Stay tuned.

Ok, no worries,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019