All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 10/67] policycoreutils: fixfiles: FIXME label /root but not
@ 2011-09-15 19:15 Daniel J Walsh
  2011-09-16  6:54 ` Guido Trentalancia
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel J Walsh @ 2011-09-15 19:15 UTC (permalink / raw)
  To: eparis; +Cc: selinux

[-- Attachment #1: Type: text/plain, Size: 346 bytes --]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


This patch looks good to me. acked.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5yTuEACgkQrlYvE4MpobO54ACfcEm8AugPf9FwIRmqVBvgj1LD
MdIAmgN6Ic/2tZZlP+pkdS/1Ht0cvgQT
=hUjl
-----END PGP SIGNATURE-----

[-- Attachment #2: 0010-policycoreutils-fixfiles-FIXME-label-root-but-not-va.patch --]
[-- Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 10/67] policycoreutils: fixfiles: FIXME label /root but not
  2011-09-15 19:15 [PATCH 10/67] policycoreutils: fixfiles: FIXME label /root but not Daniel J Walsh
@ 2011-09-16  6:54 ` Guido Trentalancia
  2011-09-16 14:28   ` Daniel J Walsh
  2011-09-16 15:36   ` Eric Paris
  0 siblings, 2 replies; 4+ messages in thread
From: Guido Trentalancia @ 2011-09-16  6:54 UTC (permalink / raw)
  To: Daniel J Walsh; +Cc: eparis, selinux

On Thu, 2011-09-15 at 15:15 -0400, Daniel J Walsh wrote:
> From 0af95817aaac37be5b7bd502df4894bd3e03d4d7 Mon Sep 17 00:00:00 2001
> From: Eric Paris <eparis@redhat.com>
> Date: Sun, 10 Jul 2011 16:25:18 +0200
> Subject: [PATCH 10/67] policycoreutils: fixfiles: FIXME label /root
> but not
>  /var/lib/BackupPC
> 
> This patch removes /root from the excluded dirs.
> 
> This also adds /var/lib/BackupPC to list of directories to ignore
> labeling.  Mainly because this directory tends to be Huge and causes a
> huge spike in the amount of time it takes to relabel.  Especially if
> there is a relabel caused by a policy update.
> 
> I'm not certain if either/both of these changes are appropriate.
> 
> NOT-Signed-off-by: Eric Paris <eparis@redhat.com>
> ---
>  policycoreutils/scripts/fixfiles |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/policycoreutils/scripts/fixfiles
> b/policycoreutils/scripts/fixfiles
> index e4e5f0d..27dcccf 100755
> --- a/policycoreutils/scripts/fixfiles
> +++ b/policycoreutils/scripts/fixfiles
> @@ -103,7 +103,7 @@ exclude_dirs_from_relabelling() {
>  
>  exclude_dirs() {
>      exclude=
> -    for i in /home /root /tmp /dev; do
> +    for i in /var/lib/BackupPC /home /tmp /dev; do

Not everybody uses BackupPC, but just in case, you could make it more
general by adapting at run-time to
http://backuppc.sourceforge.net/faq/BackupPC.html#_conf_topdir_

In other words, could read the BackupPC configuration file, if a
different TopDir is being used instead of default /var/lib/BackupPC then
exclude that.

>          [ -e $i ]  && exclude="$exclude -e $i";
>      done
>      exclude="$exclude `exclude_dirs_from_relabelling`" 

Guido


--
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] 4+ messages in thread

* Re: [PATCH 10/67] policycoreutils: fixfiles: FIXME label /root but not
  2011-09-16  6:54 ` Guido Trentalancia
@ 2011-09-16 14:28   ` Daniel J Walsh
  2011-09-16 15:36   ` Eric Paris
  1 sibling, 0 replies; 4+ messages in thread
From: Daniel J Walsh @ 2011-09-16 14:28 UTC (permalink / raw)
  To: Guido Trentalancia; +Cc: eparis, selinux

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 09/16/2011 02:54 AM, Guido Trentalancia wrote:
> On Thu, 2011-09-15 at 15:15 -0400, Daniel J Walsh wrote:
>> From 0af95817aaac37be5b7bd502df4894bd3e03d4d7 Mon Sep 17 00:00:00
>> 2001 From: Eric Paris <eparis@redhat.com> Date: Sun, 10 Jul 2011
>> 16:25:18 +0200 Subject: [PATCH 10/67] policycoreutils: fixfiles:
>> FIXME label /root but not /var/lib/BackupPC
>> 
>> This patch removes /root from the excluded dirs.
>> 
>> This also adds /var/lib/BackupPC to list of directories to
>> ignore labeling.  Mainly because this directory tends to be Huge
>> and causes a huge spike in the amount of time it takes to
>> relabel.  Especially if there is a relabel caused by a policy
>> update.
>> 
>> I'm not certain if either/both of these changes are appropriate.
>> 
>> NOT-Signed-off-by: Eric Paris <eparis@redhat.com> --- 
>> policycoreutils/scripts/fixfiles |    2 +- 1 files changed, 1
>> insertions(+), 1 deletions(-)
>> 
>> diff --git a/policycoreutils/scripts/fixfiles 
>> b/policycoreutils/scripts/fixfiles index e4e5f0d..27dcccf 100755 
>> --- a/policycoreutils/scripts/fixfiles +++
>> b/policycoreutils/scripts/fixfiles @@ -103,7 +103,7 @@
>> exclude_dirs_from_relabelling() {
>> 
>> exclude_dirs() { exclude= -    for i in /home /root /tmp /dev;
>> do +    for i in /var/lib/BackupPC /home /tmp /dev; do
> 
> Not everybody uses BackupPC, but just in case, you could make it
> more general by adapting at run-time to 
> http://backuppc.sourceforge.net/faq/BackupPC.html#_conf_topdir_
> 
> In other words, could read the BackupPC configuration file, if a 
> different TopDir is being used instead of default /var/lib/BackupPC
> then exclude that.
> 
>> [ -e $i ]  && exclude="$exclude -e $i"; done exclude="$exclude
>> `exclude_dirs_from_relabelling`"
> 
> Guido
> 

Patches Welcome.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5zXSoACgkQrlYvE4MpobOoCACfVTEhKso9b35Hw4pvFOZqI3F7
3jIAnR297k6xn9ZK/CMt7wJGrCp4GGoW
=PKm7
-----END PGP SIGNATURE-----

--
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] 4+ messages in thread

* Re: [PATCH 10/67] policycoreutils: fixfiles: FIXME label /root but not
  2011-09-16  6:54 ` Guido Trentalancia
  2011-09-16 14:28   ` Daniel J Walsh
@ 2011-09-16 15:36   ` Eric Paris
  1 sibling, 0 replies; 4+ messages in thread
From: Eric Paris @ 2011-09-16 15:36 UTC (permalink / raw)
  To: Guido Trentalancia; +Cc: Daniel J Walsh, selinux

On Fri, 2011-09-16 at 08:54 +0200, Guido Trentalancia wrote:
> On Thu, 2011-09-15 at 15:15 -0400, Daniel J Walsh wrote:
> > From 0af95817aaac37be5b7bd502df4894bd3e03d4d7 Mon Sep 17 00:00:00 2001
> > From: Eric Paris <eparis@redhat.com>
> > Date: Sun, 10 Jul 2011 16:25:18 +0200
> > Subject: [PATCH 10/67] policycoreutils: fixfiles: FIXME label /root
> > but not
> >  /var/lib/BackupPC
> > 
> > This patch removes /root from the excluded dirs.
> > 
> > This also adds /var/lib/BackupPC to list of directories to ignore
> > labeling.  Mainly because this directory tends to be Huge and causes a
> > huge spike in the amount of time it takes to relabel.  Especially if
> > there is a relabel caused by a policy update.
> > 
> > I'm not certain if either/both of these changes are appropriate.
> > 
> > NOT-Signed-off-by: Eric Paris <eparis@redhat.com>
> > ---
> >  policycoreutils/scripts/fixfiles |    2 +-
> >  1 files changed, 1 insertions(+), 1 deletions(-)
> > 
> > diff --git a/policycoreutils/scripts/fixfiles
> > b/policycoreutils/scripts/fixfiles
> > index e4e5f0d..27dcccf 100755
> > --- a/policycoreutils/scripts/fixfiles
> > +++ b/policycoreutils/scripts/fixfiles
> > @@ -103,7 +103,7 @@ exclude_dirs_from_relabelling() {
> >  
> >  exclude_dirs() {
> >      exclude=
> > -    for i in /home /root /tmp /dev; do
> > +    for i in /var/lib/BackupPC /home /tmp /dev; do
> 
> Not everybody uses BackupPC, but just in case, you could make it more
> general by adapting at run-time to
> http://backuppc.sourceforge.net/faq/BackupPC.html#_conf_topdir_
> 
> In other words, could read the BackupPC configuration file, if a
> different TopDir is being used instead of default /var/lib/BackupPC then
> exclude that.

I have not included this patch in my queue to merge.  I wonder if there
might not be further comments on the removal of /root as well.

-Eric


--
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] 4+ messages in thread

end of thread, other threads:[~2011-09-16 15:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-15 19:15 [PATCH 10/67] policycoreutils: fixfiles: FIXME label /root but not Daniel J Walsh
2011-09-16  6:54 ` Guido Trentalancia
2011-09-16 14:28   ` Daniel J Walsh
2011-09-16 15:36   ` Eric Paris

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.