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