Skip to contentSkip to conversation

security_compute_sid: minor bug fix

PATCH New Venkat Yekkirala 1 participant 1 message Jul 17, 2006 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 security_compute_sid: minor bug fix

Initializes newcontext sooner to allow for its destruction in all cases.

---

security/selinux/ss/services.c +0 -0
@@ -833,6 +833,8 @@ static int security_compute_sid(u32 ssid
		goto out;
	}

+ context_init(&newcontext);
+

	POLICY_RDLOCK;

	scontext = sidtab_search(&sidtab, ssid);
@@ -850,8 +852,6 @@ static int security_compute_sid(u32 ssid
		goto out_unlock;
	}

- context_init(&newcontext);
-

	/* Set the user identity. */
	switch (specified) {
	case AVTAB_TRANSITION:

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