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 266 by kumaneko, Mon Apr 9 13:45:52 2018 UTC revision 267 by kumaneko, Mon Aug 27 10:15:55 2018 UTC
# Line 261  static int cs_bprm_check_security(struct Line 261  static int cs_bprm_check_security(struct
261          return cs_start_execve(bprm, &security->r);          return cs_start_execve(bprm, &security->r);
262  }  }
263    
264    #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0)
265    /**
266     * cs_file_open - Check permission for open().
267     *
268     * @f:    Pointer to "struct file".
269     *
270     * Returns 0 on success, negative value otherwise.
271     */
272    static int cs_file_open(struct file *f)
273    {
274            return cs_open_permission(&f->f_path, f->f_flags);
275    }
276    #else
277  /**  /**
278   * cs_file_open - Check permission for open().   * cs_file_open - Check permission for open().
279   *   *
# Line 273  static int cs_file_open(struct file *f, Line 286  static int cs_file_open(struct file *f,
286  {  {
287          return cs_open_permission(&f->f_path, f->f_flags);          return cs_open_permission(&f->f_path, f->f_flags);
288  }  }
289    #endif
290    
291  #ifdef CONFIG_SECURITY_PATH  #ifdef CONFIG_SECURITY_PATH
292    

Legend:
Removed from v.266  
changed lines
  Added in v.267

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