security_compute_sid: minor bug fix
PATCH 1/1 security_compute_sid: minor bug fix
Initializes newcontext sooner to allow for its destruction in all cases.
Signed-off-by Venkat Yekkirala <[email protected]>
---
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.