selinux-policy/refpolicy/policy/modules/system/getty.te

77 lines
2.1 KiB
Plaintext
Raw Normal View History

2005-04-20 19:07:16 +00:00
policy_module(getty,1.0)
########################################
#
# Declarations
#
2005-04-29 21:00:40 +00:00
type getty_t;
2005-04-19 20:42:32 +00:00
type getty_exec_t;
init_make_init_domain(getty_t,getty_exec_t)
2005-04-29 21:00:40 +00:00
domain_make_file_descriptors_widely_inheritable(getty_t)
2005-04-19 20:42:32 +00:00
type getty_etc_t;
typealias getty_etc_t alias etc_getty_t;
type getty_log_t;
logging_make_log_file(getty_log_t)
type getty_tmp_t;
files_make_temporary_file(getty_tmp_t)
2005-04-19 20:42:32 +00:00
########################################
#
# Getty local policy
#
# Use capabilities.
allow getty_t self:capability { dac_override chown sys_resource sys_tty_config };
# fbgetty needs fsetid for some reason
#allow getty_t self:capability fsetid;
allow getty_t self:process { getpgid getsession };
allow getty_t getty_etc_t:dir { getattr search read };
allow getty_t getty_etc_t:file { getattr read };
files_create_private_config(getty_t,getty_etc_t,{ file dir })
2005-04-19 20:42:32 +00:00
allow getty_t getty_tmp_t:file { getattr create read setattr write setattr unlink };
allow getty_t getty_tmp_t:dir { getattr search create read setattr write setattr unlink rmdir };
files_create_private_tmp_data(getty_t,getty_tmp_t,{ file dir })
2005-04-19 20:42:32 +00:00
allow getty_t getty_log_t:file { getattr append setattr };
kernel_read_hardware_state(getty_t)
2005-04-28 15:46:23 +00:00
# for error condition handling
2005-06-08 13:12:00 +00:00
fs_get_persistent_fs_attributes(getty_t)
2005-04-19 20:42:32 +00:00
2005-04-28 15:46:23 +00:00
# Chown, chmod, read and write ttys.
2005-06-01 13:51:54 +00:00
terminal_use_all_private_physical_terminals(getty_t)
terminal_use_general_physical_terminal(getty_t)
terminal_set_all_private_physical_terminal_attributes(getty_t)
terminal_set_general_physical_terminal_attributes(getty_t)
2005-04-28 15:46:23 +00:00
terminal_set_console_attributes(getty_t)
2005-04-19 20:42:32 +00:00
2005-05-31 23:02:11 +00:00
authlogin_modify_login_records(getty_t)
corecommands_search_general_programs_directory(getty_t)
2005-04-19 20:42:32 +00:00
2005-04-28 15:46:23 +00:00
files_modify_system_runtime_data(getty_t)
files_manage_system_lock_files(getty_t)
2005-04-19 20:42:32 +00:00
files_read_runtime_system_config(getty_t)
files_read_general_system_config(getty_t)
2005-05-31 23:02:11 +00:00
init_script_modify_runtime_data(getty_t)
init_script_use_pseudoterminal(getty_t)
2005-04-19 20:42:32 +00:00
2005-05-25 20:58:21 +00:00
libraries_use_dynamic_loader(getty_t)
libraries_use_shared_libraries(getty_t)
2005-04-28 19:50:58 +00:00
locallogin_transition(getty_t)
2005-04-19 20:42:32 +00:00
2005-04-28 15:46:23 +00:00
logging_send_system_log_message(getty_t)
2005-04-19 20:42:32 +00:00
2005-04-28 15:46:23 +00:00
miscfiles_read_localization(getty_t)