Created
March 9, 2017 22:02
-
-
Save garyttierney/2751ec6b49dccba886ffcc4f03cf94e0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* 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