* selinux backups
@ 2007-06-13 17:32 david carvalho
2007-06-13 18:18 ` Stephen Smalley
2007-06-14 9:08 ` Russell Coker
0 siblings, 2 replies; 8+ messages in thread
From: david carvalho @ 2007-06-13 17:32 UTC (permalink / raw)
To: selinux
[-- Attachment #1: Type: text/plain, Size: 585 bytes --]
Good afternoon.
Wich is the best way to make a backup of a system running lvm and selinux ?
It seems that with lvm systems, the best way is to take a snapshot (wich seems a waste
of space in a Volume Group). But with Selinux ? tar-1.15 doesn't apply the right
permissions when extracting (at least of what I tested).
I've bee using "dump" for a while, and I tested it right now and it preserves the "extended attributes" so it seems to be the right option for me since the scripts I'm using, use "dump"
Is it possible/preferable to use tar or star ?
Thanks.
Regards
David
[-- Attachment #2: Type: text/html, Size: 1229 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: selinux backups
2007-06-13 17:32 selinux backups david carvalho
@ 2007-06-13 18:18 ` Stephen Smalley
2007-06-14 2:49 ` Kazuki Omo
2007-06-14 9:08 ` Russell Coker
1 sibling, 1 reply; 8+ messages in thread
From: Stephen Smalley @ 2007-06-13 18:18 UTC (permalink / raw)
To: david carvalho; +Cc: selinux, Daniel J Walsh, James Antill
On Wed, 2007-06-13 at 18:32 +0100, david carvalho wrote:
> Good afternoon.
> Wich is the best way to make a backup of a system running lvm and
> selinux ?
> It seems that with lvm systems, the best way is to take a snapshot
> (wich seems a waste
> of space in a Volume Group). But with Selinux ? tar-1.15 doesn't
> apply the right
> permissions when extracting (at least of what I tested).
> I've bee using "dump" for a while, and I tested it right now and it
> preserves the "extended attributes" so it seems to be the right option
> for me since the scripts I'm using, use "dump"
> Is it possible/preferable to use tar or star ?
What's your distribution and release? star was the first to support
preserving xattrs and selinux, dump/restore later added support, and I
think that even tar now has support at least in Fedora.
--
Stephen Smalley
National Security Agency
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: selinux backups
2007-06-13 18:18 ` Stephen Smalley
@ 2007-06-14 2:49 ` Kazuki Omo
2007-06-14 10:56 ` Stephen Smalley
0 siblings, 1 reply; 8+ messages in thread
From: Kazuki Omo @ 2007-06-14 2:49 UTC (permalink / raw)
To: Stephen Smalley; +Cc: david carvalho, selinux, Daniel J Walsh, James Antill
Hi,
I checked some backup program for writing selinux article;
http://www.atmarkit.co.jp/fsecurity/rensai/selinux202/selinux01.html
(Available on next week, but it has Japanese character only.)
Current dump/restore and star are supporting SELinux.
If you want to use "cp", you have to use "-c" option for copying
xattrs.
Also, I couldn't take xattrs by "tar" and "rsync" on CentOS4.4.
I didn't check "tar" on Fedora, so it might be able to take xattr.
I don't know how we can take xattr with "rsync":-(
Regards,
OMO
On Wed, Jun 13, 2007 at 02:18:21PM -0400, Stephen Smalley wrote:
> On Wed, 2007-06-13 at 18:32 +0100, david carvalho wrote:
> > Good afternoon.
> > Wich is the best way to make a backup of a system running lvm and
> > selinux ?
> > It seems that with lvm systems, the best way is to take a snapshot
> > (wich seems a waste
> > of space in a Volume Group). But with Selinux ? tar-1.15 doesn't
> > apply the right
> > permissions when extracting (at least of what I tested).
> > I've bee using "dump" for a while, and I tested it right now and it
> > preserves the "extended attributes" so it seems to be the right option
> > for me since the scripts I'm using, use "dump"
> > Is it possible/preferable to use tar or star ?
>
> What's your distribution and release? star was the first to support
> preserving xattrs and selinux, dump/restore later added support, and I
> think that even tar now has support at least in Fedora.
>
> --
> Stephen Smalley
> National Security Agency
>
>
> --
> This message was distributed to subscribers of the selinux mailing list.
> If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
> the words "unsubscribe selinux" without quotes as the message.
>
--
Kazuki Omo: omok@honto.info
LIDS Japanese Information:
Japanese: http://www.selinux.gr.jp/LIDS-JP/index.html
English: http://www.selinux.gr.jp/LIDS-JP/LIDS_en/index.html
Diary: http://omok.livejournal.com
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: selinux backups
2007-06-14 2:49 ` Kazuki Omo
@ 2007-06-14 10:56 ` Stephen Smalley
0 siblings, 0 replies; 8+ messages in thread
From: Stephen Smalley @ 2007-06-14 10:56 UTC (permalink / raw)
To: Kazuki Omo; +Cc: david carvalho, selinux, Daniel J Walsh, James Antill
On Thu, 2007-06-14 at 11:49 +0900, Kazuki Omo wrote:
> Hi,
>
> I checked some backup program for writing selinux article;
> http://www.atmarkit.co.jp/fsecurity/rensai/selinux202/selinux01.html
> (Available on next week, but it has Japanese character only.)
>
> Current dump/restore and star are supporting SELinux.
> If you want to use "cp", you have to use "-c" option for copying
> xattrs.
>
> Also, I couldn't take xattrs by "tar" and "rsync" on CentOS4.4.
> I didn't check "tar" on Fedora, so it might be able to take xattr.
> I don't know how we can take xattr with "rsync":-(
Try rsync -X or --xattrs. Requires a modern version of rsync though.
--
Stephen Smalley
National Security Agency
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: selinux backups
2007-06-13 17:32 selinux backups david carvalho
2007-06-13 18:18 ` Stephen Smalley
@ 2007-06-14 9:08 ` Russell Coker
1 sibling, 0 replies; 8+ messages in thread
From: Russell Coker @ 2007-06-14 9:08 UTC (permalink / raw)
To: david carvalho; +Cc: selinux
On Thursday 14 June 2007 03:32, "david carvalho" <david@di.ubi.pt> wrote:
> Good afternoon.
> Wich is the best way to make a backup of a system running lvm and selinux ?
> It seems that with lvm systems, the best way is to take a snapshot (wich
> seems a waste of space in a Volume Group). But with Selinux ? tar-1.15
> doesn't apply the right permissions when extracting (at least of what I
> tested).
Create a file that contains zeros using most of the free space on the
filesystem in question (EG dd from /dev/zero) and then unlink it. Then gzip
compress the filesystem, the zero blocks will compress well.
For my laptop I use cryptsetup to encrypt the LVM volumes so I can't usefully
compress them (encrypted data is almost uncompressable), but this does give
me encrypted backups which I consider useful.
--
russell@coker.com.au
http://etbe.coker.com.au/ My Blog
http://www.coker.com.au/sponsorship.html Sponsoring Free Software development
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 8+ messages in thread
* SELinux backups
@ 2008-06-26 19:10 Nick Gray
2008-06-26 20:03 ` Vikram Ambrose
0 siblings, 1 reply; 8+ messages in thread
From: Nick Gray @ 2008-06-26 19:10 UTC (permalink / raw)
To: SELinux List
All,
I would like to speak to anyone who has worked on, has experience
with, or just has a general interest in system/database backups on
SELinux.
I searched my mail folder going back to about 2003 and found very
little said about it.
I have been assigned this by the company I am working for and would
like to get a little insight into what has been done so far, methods
and issues encountered.
Nick G.
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: SELinux backups
2008-06-26 19:10 SELinux backups Nick Gray
@ 2008-06-26 20:03 ` Vikram Ambrose
[not found] ` <26BD11F7-FA5A-4D58-A62D-A040148278A7@austin.rr.com>
0 siblings, 1 reply; 8+ messages in thread
From: Vikram Ambrose @ 2008-06-26 20:03 UTC (permalink / raw)
To: Nick Gray; +Cc: SELinux List
Nick Gray wrote:
> All,
>
> I would like to speak to anyone who has worked on, has experience
> with, or just has a general interest in system/database backups on
> SELinux.
>
What do you mean exactly?
a) Backing up the SELinux policy store on the system?
b) Backing up a system that runs SELinux?
c) Backing up a database running in an SELinux environment?
d) Storing system backups on an SELinux enabled filesystem?
> I searched my mail folder going back to about 2003 and found very
> little said about it.
>
> I have been assigned this by the company I am working for and would
> like to get a little insight into what has been done so far, methods
> and issues encountered.
>
> Nick G.
>
> --
> This message was distributed to subscribers of the selinux mailing list.
> If you no longer wish to subscribe, send mail to
> majordomo@tycho.nsa.gov with
> the words "unsubscribe selinux" without quotes as the message.
--
Vikram Ambrose | Linux Products Division | WindRiver Corporation
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-06-27 20:51 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-13 17:32 selinux backups david carvalho
2007-06-13 18:18 ` Stephen Smalley
2007-06-14 2:49 ` Kazuki Omo
2007-06-14 10:56 ` Stephen Smalley
2007-06-14 9:08 ` Russell Coker
-- strict thread matches above, loose matches on Subject: below --
2008-06-26 19:10 SELinux backups Nick Gray
2008-06-26 20:03 ` Vikram Ambrose
[not found] ` <26BD11F7-FA5A-4D58-A62D-A040148278A7@austin.rr.com>
2008-06-27 20:50 ` Nick Gray
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.