Browse Subversion Repository
Diff of /trunk/caitsith-patch/caitsith/lsm-4.12.c
Parent Directory
| Revision Log
| Patch
| 168 |
return 0; |
return 0; |
| 169 |
} |
} |
| 170 |
|
|
| 171 |
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 7, 0) |
| 172 |
|
/** |
| 173 |
|
* cs_bprm_committing_creds - A hook which is called when do_execve() succeeded. |
| 174 |
|
* |
| 175 |
|
* @bprm: Pointer to "struct linux_binprm". |
| 176 |
|
* |
| 177 |
|
* Returns nothing. |
| 178 |
|
*/ |
| 179 |
|
static void cs_bprm_committing_creds(const struct linux_binprm *bprm) |
| 180 |
|
{ |
| 181 |
|
cs_clear_execve(0, cs_current_security()); |
| 182 |
|
} |
| 183 |
|
#else |
| 184 |
/** |
/** |
| 185 |
* cs_bprm_committing_creds - A hook which is called when do_execve() succeeded. |
* cs_bprm_committing_creds - A hook which is called when do_execve() succeeded. |
| 186 |
* |
* |
| 192 |
{ |
{ |
| 193 |
cs_clear_execve(0, cs_current_security()); |
cs_clear_execve(0, cs_current_security()); |
| 194 |
} |
} |
| 195 |
|
#endif |
| 196 |
|
|
| 197 |
#ifndef CONFIG_CAITSITH_OMIT_USERSPACE_LOADER |
#ifndef CONFIG_CAITSITH_OMIT_USERSPACE_LOADER |
| 198 |
|
|
|
|
Legend:
| Removed from v.386 |
|
| changed lines |
| |
Added in v.387 |
|
|
|