Information flow paths over devtty_t
I'm implementing a strict SELinux policy based on the reference policy using RHEL 6.3. Using 'apol' to analyze my information flow paths, I've been able to eliminate most of the tty/console paths. However, I can't seem to find a way to eliminate the access to the controlling terminal devtty_t.
I see that this is allowed in domain.te:
# Use trusted objects in /devdev_rw_null(domain)dev_rw_zero(domain)term_use_controlling_term(domain)
Is devtty_t something I should be concerned about? Is this a type that can be used to share information between processes or is it special like /dev/null and /dev/zero?
Thanks,
Andrew
Quoted 11 lines · Andy Ruch
I'm implementing a strict SELinux policy based on the reference policy using RHEL 6.3. Using 'apol' to analyze my information flow paths, I've been able to eliminate most of the tty/console paths. However, I can't seem to find a way to eliminate the access to the controlling terminal
devtty_t.I see that this is allowed in domain.te:
# Use trusted objects in /dev
dev_rw_null(domain)dev_rw_zero(domain)term_use_controlling_term(domain)Is
devtty_tsomething I should be concerned about? Is this a type that can be used to share information between processes or is it special like/dev/nulland/dev/zero?
Its essentially an alias for the terminal associated with the process. So read/write to it is the same as read/write on the actual tty/pty. So two processes could only communicate if the real terminal, e.g. /dev/tty0 is accessible to both of the processes.
see man 4 tty
So in a nutshell, its special like /dev/null and zero, so typically its ignored during an info flow analysis.
Signature · 8 lines
Chris PeBenito Tresys Technology, LLC www.tresys.com | oss.tresys.com -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 5 lines · Andy Ruch
I'm implementing a strict SELinux policy based on the reference policy using RHEL 6.3. Using 'apol' to analyze my information flow paths, I've been able to eliminate most of the tty/console paths. However, I can't seem to find a way to eliminate the access to the controlling terminal
devtty_t.I see that this is allowed in domain.te:
Quoted 7 lines
# Use trusted objects in /dev
dev_rw_null(domain)dev_rw_zero(domain)term_use_controlling_term(domain)Is
devtty_tsomething I should be concerned about? Is this a type that can be used to share information between processes or is it special like/dev/nulland/dev/zero?
It is special; it represents the controlling terminal for the current process.
Whether or not it could be an issue likely depends on whether you support newrole -l or any other way of changing levels while preserving the same controlling tty.
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.