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