Bug 112406 - rc.sysinit mounts /dev/pts twice, incorrectly
rc.sysinit mounts /dev/pts twice, incorrectly
Status: CLOSED ERRATA
Product: Fedora
Classification: Fedora
Component: initscripts (Show other bugs)
1
All Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
Brock Organ
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-12-18 22:33 EST by H. Peter Anvin
Modified: 2014-03-16 22:41 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-12-18 22:57:43 EST
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 H. Peter Anvin 2003-12-18 22:33:24 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030630

Description of problem:
/etc/rc.d/rc.sysinit mounts /dev/pts, and does so incorrectly:

mount -n -t devpts /dev/pts /dev/pts

[Note no mount options.]

... later on, it does so again, with the -f option:

mount -f /dev/pts

[mount options taken from /etc/fstab.]  On 2.4, this will overmount
the first instance of devpts with a second one, which is a bit
useless.  On 2.6, the latter operation is a noop, so devpts continues
to be mounted with default options only... which is not what you want.

Either umount /dev/pts before mounting it again, mount it correctly
the first time, or pass -o remount to the second instance.


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

How reproducible:
Always

Steps to Reproduce:
1. Install a 2.6 kernel
2. Check the permissions on /dev/pts/*
3.
    

Actual Results:  /dev/pts/* entries have default permissions, not the
one specified in /etc/fstab (usually "gid=5,mode=620").


Additional info:
Comment 1 Bill Nottingham 2003-12-18 22:57:43 EST
Please install the 7.43-1 update. :)
Comment 2 Bill Nottingham 2003-12-18 22:58:16 EST
Erm, 7.42.2-1.

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