Skip to contentSkip to conversation

Bugfix patch

PATCH Ivan Gyurdiev 2 participants 2 messages Feb 15, 2006 SELinux security module

lore
Share & tools
lore
#0 lore raw

Fix bugs in recent patches (and some additional ones).
I need to be more careful.... the tests will pass usually, since I don't have any local customizations.

libsemanage/src/semanage_store.c +1 -1
diff -Naurp --exclude-from excludes old/libsemanage/src/semanage_store.c new/libsemanage/src/semanage_store.c
@@ -102,8 +102,8 @@ static const char *semanage_sandbox_path
 	"/booleans.local",
 	"/file_contexts.local",
 	"/seusers",
-	"/users_extra.local",
 	"/users.local",
+	"/users_extra.local",
 	"/seusers.final",
 	"/users_extra",
 };
libsepol/src/nodes.c +1 -1
diff -Naurp --exclude-from excludes old/libsepol/src/nodes.c new/libsepol/src/nodes.c
@@ -300,7 +300,7 @@ int sepol_node_modify(
 	const sepol_node_t* data) {
 
 	policydb_t *policydb = &p->p;
-	ocontext_t *c, *head, *prev = NULL, *node = NULL;
+	ocontext_t *node = NULL;
 
 	int proto;
 	const char *addr, *mask;
libsepol/src/ports.c +1 -1
diff -Naurp --exclude-from excludes old/libsepol/src/ports.c new/libsepol/src/ports.c
@@ -253,7 +253,7 @@ int sepol_port_modify(
 	const sepol_port_t* data) {
 
 	policydb_t *policydb = &p->p;
-	ocontext_t *c, *head, *prev = NULL, *port = NULL;
+	ocontext_t *port = NULL;
 
 	int low, high, proto;
 	const char* proto_str;
policycoreutils/semanage/semanage +2 -1
diff -Naurp --exclude-from excludes old/policycoreutils/semanage/semanage new/policycoreutils/semanage/semanage
@@ -41,6 +41,7 @@ Primary Options:\n\
 	-d, --delete     Delete a OBJECT record NAME\n\
 	-m, --modify     Modify a OBJECT record NAME\n\
 	-l, --list       List the OBJECTS\n\n\
+\
 	-h, --help       Display this message\n\
 	-n, --noheading  Do not print heading when listing OBJECTS\n\n\
 \
@@ -51,8 +52,8 @@ Object-specific Options (see above):\n\
 		-d (directory) \n\
 		-c (character device) \n\
 		-b (block device) \n\
-		-d (directory) \n\
 		-s (socket) \n\
+		-l (symbolic link) \n\
 		-p (named pipe) \n\n\
 \
 	-p, --proto      Port protocol (tcp or udp)\n\
policycoreutils/semanage/seobject.py +1 -0
diff -Naurp --exclude-from excludes old/policycoreutils/semanage/seobject.py new/policycoreutils/semanage/seobject.py
@@ -863,6 +863,7 @@ class fcontextRecords(semanageRecords):
 		self.file_types["block device"] = SEMANAGE_FCONTEXT_BLOCK;
 		self.file_types["-s"] = SEMANAGE_FCONTEXT_SOCK;
 		self.file_types["socket"] = SEMANAGE_FCONTEXT_SOCK;
+		self.file_types["-l"] = SEMANAGE_FCONTEXT_LINK;
 		self.file_types["symbolic link"] = SEMANAGE_FCONTEXT_LINK;
 		self.file_types["-p"] = SEMANAGE_FCONTEXT_PIPE;
 		self.file_types["named pipe"] = SEMANAGE_FCONTEXT_PIPE;
#1 lore raw
Quoted 3 lines · Ivan Gyurdiev

Fix bugs in recent patches (and some additional ones).
I need to be more careful.... the tests will pass usually, since I don't have any local customizations.

Merged along with the prior two 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.