Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

/dev/ptmx suid root tty device file - Who owns this?

0 views
Skip to first unread message

David D. W. Downey

unread,
Apr 10, 2002, 9:00:13 AM4/10/02
to
Evening ladies and gents,


got a file here that's set suid root as a tty device.

$ dpkg -S /dev/ptmx
dpkg: /dev/ptmx not found
$

doing a

$ grep ptmx -r /var/lib/dpkg/ | less
<snipped>
$

shows the tetex-base tetex-extra packages and their font installs, it
does not show any device creation calls for this specific device.

I know that a grep -i ptmx -r kernel-source-2.4.18/ will show a
Pseudo-tty which is fine. The devices.txt shows that it's a Master pty
for the pty master multiplex, and the lettering positions within the pty array
list.

I'm looking to find out what it's specific usage is, as in at the device
level is this a template file used to carbon the ttys off of? If not, why
is it set for the global array for the entire x series? Or is this file
acting as a device fifo for IPC processes?

I've run this against woody and sid with no ownership found. Other than
it being part of the base*.tgz I can't see what package owns it or any
other data on it other than device type.

I do see in the man page that it says some devices will not be
recorded as being owned by a package if it was created by a postinst, I
don't see in any of the install or system logs this device being
created. So to me that begs the question, who owns this file's creation?

Anyone out there know what package(s) specificly create(s) this device?


--
David D.W. Downey <david-...@codecastle.com>
Upstream - libpam-pgsql.codecastle.com
Debian - Woody: 0.5.2-2 Sid: 0.5.2-3
State - bugs.debian.org/libpam-pgsql

Martijn van Oosterhout

unread,
Apr 10, 2002, 9:30:08 AM4/10/02
to
On Wed, Apr 10, 2002 at 05:51:30AM -0700, David D. W. Downey wrote:
> I know that a grep -i ptmx -r kernel-source-2.4.18/ will show a
> Pseudo-tty which is fine. The devices.txt shows that it's a Master pty
> for the pty master multiplex, and the lettering positions within the pty array
> list.

That's what it is.

> I'm looking to find out what it's specific usage is, as in at the device
> level is this a template file used to carbon the ttys off of? If not, why
> is it set for the global array for the entire x series? Or is this file
> acting as a device fifo for IPC processes?

There is a protocol, I'm not sure. Most people use the makepty() system call
which hides all the magic in glibc.

> I've run this against woody and sid with no ownership found. Other than
> it being part of the base*.tgz I can't see what package owns it or any
> other data on it other than device type.

Look into MAKEDEV. It has instructions for creating hundreds of devices.
Also, if you have devfs it will be created by the kernel.

> I do see in the man page that it says some devices will not be
> recorded as being owned by a package if it was created by a postinst, I
> don't see in any of the install or system logs this device being
> created. So to me that begs the question, who owns this file's creation?
>
> Anyone out there know what package(s) specificly create(s) this device?

I think it's in base*.tgz precisely because if you delete it, you'll
probably not be able login remotely. It's not really owned by anybody,
because it needs to exist before ownership is meaningful (if you get what I
mean...).

HTH,
--
Martijn van Oosterhout <kle...@svana.org> http://svana.org/kleptog/
> Ignorance continues to thrive when intelligent people choose to do
> nothing. Speaking out against censorship and ignorance is the imperative
> of all intelligent people.


--
To UNSUBSCRIBE, email to debian-dev...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

David D.W. Downey

unread,
Apr 10, 2002, 6:40:12 PM4/10/02
to
On Wed, Apr 10, 2002 at 03:12:05PM +0200, Andreas Metzler wrote:
> On Wed, Apr 10, 2002 at 05:51:30AM -0700, David D. W. Downey wrote:
> [PGP-signed message]
>
> Where is this key (C5A76BF6) available for download, neither
> keyservers, nor
> http://lists.debian.org/debian-devel/2001/debian-devel-200112/msg02249.html
> nor
> http://linuxnewbie.codecastle.com/david-downey-publickey.asc
> holds it.
> cu andreas

My fault, I forgot to post to the keyservers.
linuxnewbie shou;l.d be updated now as should libpgsl

david-downey-publickey.asc
0 new messages