All of lore.kernel.org
 help / color / mirror / Atom feed
* libsemanage patch to handle installation problem
       [not found]         ` <1159538012.8496.35.camel@moss-spartans.epoch.ncsc.mil>
@ 2006-09-29 14:43           ` Daniel J Walsh
  2006-09-29 15:01             ` Joshua Brindle
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel J Walsh @ 2006-09-29 14:43 UTC (permalink / raw)
  To: Stephen Smalley; +Cc: Joshua Brindle, Karl MacMillan, SE Linux

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

During install if selinux-policy-mls or selinux-policy-strict get 
installed before targeted, libsemanage will
try to load those policies when it should not.

Dan


[-- Attachment #2: libsemanage-rhat.patch --]
[-- Type: text/x-patch, Size: 379 bytes --]

--- libsemanage-1.6.16/src/semanage_store.c~	2006-08-23 13:57:48.000000000 -0400
+++ libsemanage-1.6.16/src/semanage_store.c	2006-09-29 10:41:08.000000000 -0400
@@ -1106,6 +1106,10 @@
 			goto skip_reload;
 		}
 	}
+	else 
+		if (errno == ENOENT && 
+		    strcmp(really_active_store, storepath) != 0)
+			goto skip_reload;
 
 	if (semanage_reload_policy(sh)) {
 		goto cleanup;

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

* Re: libsemanage patch to handle installation problem
  2006-09-29 14:43           ` libsemanage patch to handle installation problem Daniel J Walsh
@ 2006-09-29 15:01             ` Joshua Brindle
  2006-09-29 15:48               ` Stephen Smalley
  0 siblings, 1 reply; 3+ messages in thread
From: Joshua Brindle @ 2006-09-29 15:01 UTC (permalink / raw)
  To: Daniel J Walsh; +Cc: Stephen Smalley, Karl MacMillan, SE Linux

On Fri, 2006-09-29 at 10:43 -0400, Daniel J Walsh wrote:
> --- libsemanage-1.6.16/src/semanage_store.c~    2006-08-23
> 13:57:48.000000000 -0400
> +++ libsemanage-1.6.16/src/semanage_store.c     2006-09-29
> 10:41:08.000000000 -0400
> @@ -1106,6 +1106,10 @@
>                         goto skip_reload;
>                 }
>         }
> +       else 
> +               if (errno == ENOENT && 
> +                   strcmp(really_active_store, storepath) != 0)
> +                       goto skip_reload;
>  
>         if (semanage_reload_policy(sh)) {
>                 goto cleanup; 

Acked-By: Joshua Brindle <jbrindle@tresys.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] 3+ messages in thread

* Re: libsemanage patch to handle installation problem
  2006-09-29 15:01             ` Joshua Brindle
@ 2006-09-29 15:48               ` Stephen Smalley
  0 siblings, 0 replies; 3+ messages in thread
From: Stephen Smalley @ 2006-09-29 15:48 UTC (permalink / raw)
  To: Joshua Brindle; +Cc: Daniel J Walsh, Karl MacMillan, SE Linux

On Fri, 2006-09-29 at 11:01 -0400, Joshua Brindle wrote:
> On Fri, 2006-09-29 at 10:43 -0400, Daniel J Walsh wrote:
> > --- libsemanage-1.6.16/src/semanage_store.c~    2006-08-23
> > 13:57:48.000000000 -0400
> > +++ libsemanage-1.6.16/src/semanage_store.c     2006-09-29
> > 10:41:08.000000000 -0400
> > @@ -1106,6 +1106,10 @@
> >                         goto skip_reload;
> >                 }
> >         }
> > +       else 
> > +               if (errno == ENOENT && 
> > +                   strcmp(really_active_store, storepath) != 0)
> > +                       goto skip_reload;
> >  
> >         if (semanage_reload_policy(sh)) {
> >                 goto cleanup; 
> 
> Acked-By: Joshua Brindle <jbrindle@tresys.com>

Merged (with coding style cleanup) along with the other libsemanage
patches.

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

end of thread, other threads:[~2006-09-29 15:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <451BEFA4.60507@redhat.com>
     [not found] ` <1159463932.11489.44.camel@moss-spartans.epoch.ncsc.mil>
     [not found]   ` <1159464256.11489.48.camel@moss-spartans.epoch.ncsc.mil>
     [not found]     ` <451C0C79.4000105@redhat.com>
     [not found]       ` <1159537518.29474.6.camel@twoface.columbia.tresys.com>
     [not found]         ` <1159538012.8496.35.camel@moss-spartans.epoch.ncsc.mil>
2006-09-29 14:43           ` libsemanage patch to handle installation problem Daniel J Walsh
2006-09-29 15:01             ` Joshua Brindle
2006-09-29 15:48               ` Stephen Smalley

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.