Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Oct 1998 00:49:04 -0700 (PDT)
From:      Bruce Evans <bde@FreeBSD.ORG>
To:        cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   cvs commit: src/sys/ufs/ufs ufs_disksubr.c
Message-ID:  <199810170749.AAA04052@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
bde         1998/10/17 00:49:04 PDT

  Modified files:
    sys/ufs/ufs          ufs_disksubr.c 
  Log:
  Use only the correct raw partition for writing labels.  Don't use the
  partition that the label ioctl is being done on just because it has
  offset 0, since there is no guarantee that such a partition is large
  enough to contain the label.  Don't use the wrong raw partition (0
  instead of RAW_PART).
  
  This fixes problems rewriting bizarre labels (with a nonzero offset
  for the 'a' partition) in newfs(8).  Such labels shouldn't normally
  be used, but creating them was allowed if the ioctl was done on the
  raw partition, and sysinstall creates them if the root partition isn't
  allocated first.
  
  Note that allowing write access to a partition other than the one that
  has been checked for write access doesn't increase security holes
  significantly, since write access to any partition already allows
  changing the in-core label.
  
  This fix should be in 3.0R.  Rev.1.26 of newfs/newfs.c shouldn't be
  in 3.0R.
  
  Revision  Changes    Path
  1.38      +4 -9      src/sys/ufs/ufs/ufs_disksubr.c

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810170749.AAA04052>