Chris PeBenito 31b7c0
#DESC Crack - Password cracking application
Chris PeBenito 31b7c0
#
Chris PeBenito 31b7c0
# Author:  Russell Coker <russell@coker.com.au>
Chris PeBenito 31b7c0
# X-Debian-Packages: crack
Chris PeBenito 31b7c0
#
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
#################################
Chris PeBenito 31b7c0
#
Chris PeBenito 31b7c0
# Rules for the crack_t domain.
Chris PeBenito 31b7c0
#
Chris PeBenito 31b7c0
# crack_exec_t is the type of the crack executable.
Chris PeBenito 31b7c0
#
Chris PeBenito 31b7c0
system_domain(crack)
Chris PeBenito 31b7c0
ifdef(`crond.te', `
Chris PeBenito 31b7c0
system_crond_entry(crack_exec_t, crack_t)
Chris PeBenito 31b7c0
')
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
# for SSP
Chris PeBenito 31b7c0
allow crack_t urandom_device_t:chr_file read;
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
type crack_db_t, file_type, sysadmfile, usercanread;
Chris PeBenito 31b7c0
allow crack_t var_t:dir search;
Chris PeBenito 31b7c0
rw_dir_create_file(crack_t, crack_db_t)
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
allow crack_t device_t:dir search;
Chris PeBenito 31b7c0
allow crack_t devtty_t:chr_file rw_file_perms;
Chris PeBenito 31b7c0
allow crack_t self:fifo_file { read write getattr };
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
tmp_domain(crack)
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
# for dictionaries
Chris PeBenito 31b7c0
allow crack_t usr_t:file { getattr read };
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
can_exec(crack_t, bin_t)
Chris PeBenito 31b7c0
allow crack_t { bin_t sbin_t }:dir search;
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
allow crack_t self:process { fork signal_perms };
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
allow crack_t proc_t:dir { read search };
Chris PeBenito 31b7c0
allow crack_t proc_t:file { read getattr };
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
# read config files
Chris PeBenito 31b7c0
allow crack_t { etc_t etc_runtime_t }:file { getattr read };
Chris PeBenito 31b7c0
allow crack_t etc_t:dir r_dir_perms;
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
allow crack_t fs_t:filesystem getattr;
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
dontaudit crack_t sysadm_home_dir_t:dir { getattr search };