Skip to content

Instantly share code, notes, and snippets.

@garyttierney
Created March 9, 2017 22:02
Show Gist options
  • Select an option

  • Save garyttierney/2751ec6b49dccba886ffcc4f03cf94e0 to your computer and use it in GitHub Desktop.

Select an option

Save garyttierney/2751ec6b49dccba886ffcc4f03cf94e0 to your computer and use it in GitHub Desktop.
/* socket security operations */
static int socket_sockcreate_sid(const struct task_security_struct *tsec,
u16 secclass, u32 *socksid)
{
if (tsec->sockcreate_sid > SECSID_NULL) {
*socksid = tsec->sockcreate_sid;
return 0;
}
return security_transition_sid(tsec->sid, tsec->sid, secclass, NULL,
socksid);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment