Skip to contentSkip to conversation

Securing backup-shell-script

DISCUSSION Thomas Reuss 1 participant 1 message Jul 27, 2006 SELinux security module

lore
Share & tools
lore
#0 lore raw

Hi,

we are trying to protect a backup-shell-script, using the targeted policy under Fedora Core 5.
The script tars several directories
(/etc, /var/www, /var/lib/majordomo, /var/spool/mail), it dumps all mysql-databases via mysqldump and stores the ldap-data via slapcat. Finally, it computes md5 checksums over all /etc-Files. In case of any error, the script notifies root via sendmail.

The script is started by cron. The executed programs run under "unconfined_t". (I.e. tar for example runs in the domain "unconfined_t")

Which steps do we have to take, to secure the script, e.g. in an own domain "backup_t" ?

Thank you very much,

Thomas

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.