All of lore.kernel.org
 help / color / mirror / Atom feed
* TTY question
@ 2005-02-09  2:15 Ivan Gyurdiev
  2005-02-09  3:10 ` Jim McCullough
  2005-02-09 13:06 ` Stephen Smalley
  0 siblings, 2 replies; 19+ messages in thread
From: Ivan Gyurdiev @ 2005-02-09  2:15 UTC (permalink / raw)
  To: SELinux

Hi,

I don't quite understand the difference between all the TTY/PTY devices
on Linux - could you explain how this works a bit, so that I will know
for the future. 

Which of those rules would be required for stdin/stdout?

allow $1_$2_t tty_device_t:chr_file rw_file_perms;
allow $1_$2_t $1_tty_device_t:chr_file rw_file_perms;

allow $1_$2_t devtty_t:chr_file rw_file_perms;
allow $1_$2_t devpts_t:dir r_dir_perms;
allow $1_$2_t $1_devpts_t:chr_file rw_file_perms;

What about proc permissions required?

Can some of those rules be put in a macro of some sort.
I see tty rules all over the selinux policy, and perhaps
they could be made more consistent with a macro.

-- 
Ivan Gyurdiev <ivg2@cornell.edu>
Cornell University


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 19+ messages in thread
* tty question
@ 2004-05-03 18:51 Dvorkin
  0 siblings, 0 replies; 19+ messages in thread
From: Dvorkin @ 2004-05-03 18:51 UTC (permalink / raw)
  To: linux-kernel

I'm trying to write LKM that acts like TTY.
i'm using tty_register_driver(...) to register my virtual device and it's
functions... there are open/close/write/ioctl functions, but what function
acts as READ in struct tty_driver ?

I'm sorry for the stupid question...

-- 
WBR, Dvorkin


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

end of thread, other threads:[~2005-02-10 22:32 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-09  2:15 TTY question Ivan Gyurdiev
2005-02-09  3:10 ` Jim McCullough
2005-02-09 13:06 ` Stephen Smalley
2005-02-10  2:02   ` Ivan Gyurdiev
2005-02-10 12:46     ` Stephen Smalley
2005-02-10 13:48       ` Ivan Gyurdiev
2005-02-10 18:04         ` Ivan Gyurdiev
2005-02-10 18:09           ` Stephen Smalley
2005-02-10 19:15           ` Ivan Gyurdiev
2005-02-10 19:31             ` Stephen Smalley
2005-02-10 20:29               ` Ivan Gyurdiev
2005-02-10 20:31                 ` Stephen Smalley
2005-02-10 21:12                   ` Ivan Gyurdiev
2005-02-10 21:16                     ` Stephen Smalley
2005-02-10 21:33                       ` Ivan Gyurdiev
2005-02-10 22:27                         ` Daniel J Walsh
2005-02-10 21:39                       ` Ivan Gyurdiev
2005-02-10 21:41                         ` Stephen Smalley
  -- strict thread matches above, loose matches on Subject: below --
2004-05-03 18:51 tty question Dvorkin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.