Chris PeBenito 9401ae1
# backup
Chris PeBenito 9401ae1
# label programs that do backups to other files on disk (IE a cron job that
Chris PeBenito 9401ae1
# calls tar) in backup_exec_t and label the directory for storing them as
Chris PeBenito 9401ae1
# backup_store_t, Debian uses /var/backups
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
#/usr/local/bin/backup-script	--	gen_context(system_u:object_r:backup_exec_t,s0)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
ifdef(`distro_debian',`
Chris PeBenito 9401ae1
/etc/cron.daily/aptitude	--	gen_context(system_u:object_r:backup_exec_t,s0)
Chris PeBenito 9401ae1
/etc/cron.daily/standard	--	gen_context(system_u:object_r:backup_exec_t,s0)
Chris PeBenito 9401ae1
')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
/var/backups(/.*)?			gen_context(system_u:object_r:backup_store_t,s0)