selinux: Delete mls_copy_context
This deletes mls_copy_context() in favor of mls_context_cpy() and replaces mls_scopy_context() with mls_context_cpy_low(). Signed-off-by: Venkat Yekkirala <vyekkirala@TrustedCS.com> Acked-by: Stephen Smalley <sds@tycho.nsa.gov> Signed-off-by: James Morris <jmorris@namei.org>
This commit is contained in:
committed by
James Morris
parent
bf81b46482
commit
0efc61eaee
@@ -1916,11 +1916,10 @@ int security_sid_mls_copy(u32 sid, u32 mls_sid, u32 *new_sid)
|
||||
newcon.user = context1->user;
|
||||
newcon.role = context1->role;
|
||||
newcon.type = context1->type;
|
||||
rc = mls_copy_context(&newcon, context2);
|
||||
rc = mls_context_cpy(&newcon, context2);
|
||||
if (rc)
|
||||
goto out_unlock;
|
||||
|
||||
|
||||
/* Check the validity of the new context. */
|
||||
if (!policydb_context_isvalid(&policydb, &newcon)) {
|
||||
rc = convert_context_handle_invalid_context(&newcon);
|
||||
|
||||
Reference in New Issue
Block a user