Develop and Download Open Source Software

Browse Subversion Repository

Diff of /trunk/caitsith-patch/caitsith/lsm-4.12.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 386 by kumaneko, Tue Oct 3 10:24:05 2023 UTC revision 387 by kumaneko, Mon Dec 25 14:08:19 2023 UTC
# Line 168  static int cs_cred_prepare(struct cred * Line 168  static int cs_cred_prepare(struct cred *
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   *   *
# Line 179  static void cs_bprm_committing_creds(str Line 192  static void cs_bprm_committing_creds(str
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

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26