public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/10166] New: grantpt() does can not be used for devpts
@ 2009-05-18  4:01 yjwei at cn dot fujitsu dot com
  2009-05-18  4:03 ` [Bug libc/10166] " yjwei at cn dot fujitsu dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: yjwei at cn dot fujitsu dot com @ 2009-05-18  4:01 UTC (permalink / raw)
  To: glibc-bugs

On my Fedora11Beta box, the grantpt() does can not be used for devpts.
In RHEL system, the /etc/fstab has this configure, it has no problem.
  devpts /dev/pts devpts gid=5,mode=620 0 0
But in Fedora11Beta this line changed to:
  devpts /dev/pts devpts defaults 0 0

I looked into the kernel source, the mode of devpts has the default value of 
600, not 620. So, does not change the mode of devpts is not correct.

This is found by LTP - testcases/kernel/pty/pty01.c

-- 
           Summary: grantpt() does can not be used for devpts
           Product: glibc
           Version: 2.10
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: yjwei at cn dot fujitsu dot com
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=10166

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libc/10166] grantpt() does can not be used for devpts
  2009-05-18  4:01 [Bug libc/10166] New: grantpt() does can not be used for devpts yjwei at cn dot fujitsu dot com
@ 2009-05-18  4:03 ` yjwei at cn dot fujitsu dot com
  2009-06-05  8:17 ` yjwei at cn dot fujitsu dot com
  2009-06-16  5:59 ` drepper at redhat dot com
  2 siblings, 0 replies; 5+ messages in thread
From: yjwei at cn dot fujitsu dot com @ 2009-05-18  4:03 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From yjwei at cn dot fujitsu dot com  2009-05-18 04:03 -------
Created an attachment (id=3942)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=3942&action=view)
patch for glibc


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10166

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libc/10166] grantpt() does can not be used for devpts
  2009-05-18  4:01 [Bug libc/10166] New: grantpt() does can not be used for devpts yjwei at cn dot fujitsu dot com
  2009-05-18  4:03 ` [Bug libc/10166] " yjwei at cn dot fujitsu dot com
@ 2009-06-05  8:17 ` yjwei at cn dot fujitsu dot com
  2009-06-16  5:59 ` drepper at redhat dot com
  2 siblings, 0 replies; 5+ messages in thread
From: yjwei at cn dot fujitsu dot com @ 2009-06-05  8:17 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From yjwei at cn dot fujitsu dot com  2009-06-05 08:16 -------
I had look the manpage of grantpt():

#man 3 grantpt

DESCRIPTION
       The grantpt() function changes the mode and owner of the slave
pseudo-terminal device (pty) corresponding to the master pty referred
to by fd.  The user ID of the slave is set to the real UID of the
calling process.  The group ID is set to an unspecified value (e.g.
tty).  The mode of the slave is set to 0620 (crw--w----).

So there is no reason for glibc does not change the mode of devpts,
since the default mode of devpts is 600. Isn't it?


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10166

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libc/10166] grantpt() does can not be used for devpts
  2009-05-18  4:01 [Bug libc/10166] New: grantpt() does can not be used for devpts yjwei at cn dot fujitsu dot com
  2009-05-18  4:03 ` [Bug libc/10166] " yjwei at cn dot fujitsu dot com
  2009-06-05  8:17 ` yjwei at cn dot fujitsu dot com
@ 2009-06-16  5:59 ` drepper at redhat dot com
  2 siblings, 0 replies; 5+ messages in thread
From: drepper at redhat dot com @ 2009-06-16  5:59 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2009-06-16 05:59 -------
The patch is hurting correctly configured systems.  I've checked in a different
patch.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://sourceware.org/bugzilla/show_bug.cgi?id=10166

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libc/10166] grantpt() does can not be used for devpts
       [not found] <bug-10166-131@http.sourceware.org/bugzilla/>
@ 2014-07-01 20:29 ` fweimer at redhat dot com
  0 siblings, 0 replies; 5+ messages in thread
From: fweimer at redhat dot com @ 2014-07-01 20:29 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=10166

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-07-01 20:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-18  4:01 [Bug libc/10166] New: grantpt() does can not be used for devpts yjwei at cn dot fujitsu dot com
2009-05-18  4:03 ` [Bug libc/10166] " yjwei at cn dot fujitsu dot com
2009-06-05  8:17 ` yjwei at cn dot fujitsu dot com
2009-06-16  5:59 ` drepper at redhat dot com
     [not found] <bug-10166-131@http.sourceware.org/bugzilla/>
2014-07-01 20:29 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).