Skip to contentSkip to conversation

libsemanage patch to handle installation problem

PATCH Daniel J Walsh 3 participants 3 messages Sep 29, 2006 6 messages not in the archive SELinux security module

lore
Share & tools
lore
#6 lore raw
In reply to a message not in the archive

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

src/semanage_store.c renamed from src/semanage_store.c~ +4 -0
@@ -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;
#7 lore raw
Quoted 5 lines · Daniel J Walsh

--- 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

src/semanage_store.c line 1115

Quoted 10 lines
src/semanage_store.c renamed from src/semanage_store.c~ +4 -0
@@ -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; 

--
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.

#8 lore raw
Quoted 14 lines · Joshua Brindle
Quoted 13 lines · Daniel J Walsh

--- 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

src/semanage_store.c renamed from src/semanage_store.c~ +4 -0
@@ -1106,6 +1106,10 @@
                        goto skip_reload;
                }
        }
+       else 
+               if (errno == ENOENT && 
+                   strcmp(really_active_store, storepath) != 0)
+                       goto skip_reload;
 
Quoted 4 lines

src/semanage_store.c line 1115

Quoted 2 lines
src/semanage_store.c renamed from src/semanage_store.c~ +0 -0
        if (semanage_reload_policy(sh)) {
                goto cleanup; 

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

Signature · 8 lines
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 [email protected] with
the words "unsubscribe selinux" without quotes as the message.