Blame mls/domains/program/unused/ethereal.te
|
Chris PeBenito |
31b7c0 |
# DESC - Ethereal
|
|
Chris PeBenito |
31b7c0 |
#
|
|
Chris PeBenito |
31b7c0 |
# Author: Ivan Gyurdiev <ivg2@cornell.edu>
|
|
Chris PeBenito |
31b7c0 |
#
|
|
Chris PeBenito |
31b7c0 |
|
|
Chris PeBenito |
31b7c0 |
# Type for executables
|
|
Chris PeBenito |
31b7c0 |
type tethereal_exec_t, file_type, exec_type, sysadmfile;
|
|
Chris PeBenito |
31b7c0 |
type ethereal_exec_t, file_type, exec_type, sysadmfile;
|
|
Chris PeBenito |
31b7c0 |
|
|
Chris PeBenito |
31b7c0 |
########################################################
|
|
Chris PeBenito |
31b7c0 |
# Tethereal
|
|
Chris PeBenito |
31b7c0 |
#
|
|
Chris PeBenito |
31b7c0 |
|
|
Chris PeBenito |
31b7c0 |
# Type for program
|
|
Chris PeBenito |
31b7c0 |
type tethereal_t, domain, nscd_client_domain;
|
|
Chris PeBenito |
31b7c0 |
|
|
Chris PeBenito |
31b7c0 |
# Transition from sysadm type
|
|
Chris PeBenito |
31b7c0 |
domain_auto_trans(sysadm_t, tethereal_exec_t, tethereal_t)
|
|
Chris PeBenito |
31b7c0 |
role sysadm_r types tethereal_t;
|
|
Chris PeBenito |
31b7c0 |
|
|
Chris PeBenito |
31b7c0 |
uses_shlib(tethereal_t)
|
|
Chris PeBenito |
31b7c0 |
read_locale(tethereal_t)
|
|
Chris PeBenito |
31b7c0 |
|
|
Chris PeBenito |
31b7c0 |
# Terminal output
|
|
Chris PeBenito |
31b7c0 |
access_terminal(tethereal_t, sysadm)
|
|
Chris PeBenito |
31b7c0 |
|
|
Chris PeBenito |
31b7c0 |
# /proc
|
|
Chris PeBenito |
31b7c0 |
read_sysctl(tethereal_t)
|
|
Chris PeBenito |
31b7c0 |
allow tethereal_t { self proc_t }:dir { read search getattr };
|
|
Chris PeBenito |
31b7c0 |
allow tethereal_t { self proc_t }:{ file lnk_file } { read getattr };
|
|
Chris PeBenito |
31b7c0 |
|
|
Chris PeBenito |
31b7c0 |
# Access root
|
|
Chris PeBenito |
31b7c0 |
allow tethereal_t root_t:dir search;
|
|
Chris PeBenito |
31b7c0 |
|
|
Chris PeBenito |
31b7c0 |
# Read ethereal files in /usr
|
|
Chris PeBenito |
31b7c0 |
allow tethereal_t usr_t:file { read getattr };
|
|
Chris PeBenito |
31b7c0 |
|
|
Chris PeBenito |
31b7c0 |
# /etc/nsswitch.conf
|
|
Chris PeBenito |
31b7c0 |
allow tethereal_t etc_t:file { read getattr };
|
|
Chris PeBenito |
31b7c0 |
|
|
Chris PeBenito |
31b7c0 |
# Ethereal sysadm rules
|
|
Chris PeBenito |
31b7c0 |
ethereal_networking(tethereal)
|
|
Chris PeBenito |
31b7c0 |
|
|
Chris PeBenito |
31b7c0 |
# FIXME: policy is incomplete
|
|
Chris PeBenito |
31b7c0 |
|
|
Chris PeBenito |
31b7c0 |
#####################################
|
|
Chris PeBenito |
31b7c0 |
# Ethereal (GNOME) policy can be found
|
|
Chris PeBenito |
31b7c0 |
# in ethereal_macros.te
|