public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* tty_mutex and tty_old_pgrp
@ 2006-06-26 22:38 Jon Smirl
  2006-06-27 22:56 ` Paul Fulghum
  0 siblings, 1 reply; 8+ messages in thread
From: Jon Smirl @ 2006-06-26 22:38 UTC (permalink / raw)
  To: lkml

In tty_io.c there is a comment that tty_mutex needs to be held before
changing tty_old_pgrp. If I grep for tty_old_pgrp every place it is
changed except for one is protected by tty_mutex.
In security/selinux/hooks.c it appears to be changed without holding
the lock, is this ok? If it is ok, I can add a comment saying it is.

If someone were to provide me with the proper guidance, I have some
time I could spend working on the tty code. For example from an object
oriented perspective it doesn't look right to me that
disassociate_ctty is a function in the tty layer. It makes more sense
to me that this function would be located in the task code.

How could things be rearranged to avoid the need for sys_setsid() and
daemonize() to directly manipulate tty_mutex? What exactly is
tty_mutex protecting, it appears to be used in multiple contexts.

-- 
Jon Smirl
jonsmirl@gmail.com

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

end of thread, other threads:[~2006-06-29  5:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-26 22:38 tty_mutex and tty_old_pgrp Jon Smirl
2006-06-27 22:56 ` Paul Fulghum
2006-06-28  3:29   ` Jon Smirl
2006-06-28 10:24     ` Alan Cox
2006-06-28 17:36       ` Jon Smirl
2006-06-28 18:04         ` Alan Cox
2006-06-28 18:13           ` Jon Smirl
2006-06-29  5:41             ` Jon Smirl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox