Received: from jazzdrum.ncsc.mil (zombie.ncsc.mil [144.51.88.131]) by tycho.ncsc.mil (8.12.8/8.12.8) with ESMTP id j1ADm5L9011323 for ; Thu, 10 Feb 2005 08:48:05 -0500 (EST) Subject: Re: TTY question From: Ivan Gyurdiev Reply-To: ivg2@cornell.edu To: Stephen Smalley Cc: SELinux In-Reply-To: <1108039573.22172.37.camel@moss-spartans.epoch.ncsc.mil> References: <1107915334.6602.1.camel@cobra.ivg2.net> <1107954368.17568.25.camel@moss-spartans.epoch.ncsc.mil> <1108000939.5241.10.camel@cobra.ivg2.net> <1108039573.22172.37.camel@moss-spartans.epoch.ncsc.mil> Content-Type: text/plain Date: Thu, 10 Feb 2005 08:48:39 -0500 Message-Id: <1108043320.326.1.camel@cobra.ivg2.net> Mime-Version: 1.0 Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov >Why not just: ># access_terminal(domain, typeprefix) >define(`access_terminal', ` >allow $1 $2_tty_device_t:chr_file rw_file_perms; >allow $1 devtty_t:chr_file rw_file_perms; >allow $1 devpts_t:dir r_dir_perms; >allow $1 $2_devpts_t:chr_file rw_file_perms; >') dnl access_terminal > >Then the usage in e.g. x_client_domain becomes: >access_terminal($1_$2_t, $1) > >whereas elsewhere it may just be: >access_terminal($1_t, $1) That's better :) I'll write some patches against dwalsh's repository. > -- Ivan Gyurdiev 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.