オープンソース・ソフトウェアの開発とダウンロード

Subversion リポジトリの参照

Diff of /trunk/1.8.x/ccs-patch/security/ccsecurity/policy_io.c

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

revision 2908 by kumaneko, Sat Aug 15 07:28:22 2009 UTC revision 2911 by kumaneko, Sat Aug 15 12:21:38 2009 UTC
# Line 1754  static struct ccs_condition *ccs_get_exe Line 1754  static struct ccs_condition *ccs_get_exe
1754          char *argv0 = NULL;          char *argv0 = NULL;
1755          if (ccs_check_flags(NULL, CCS_AUTOLEARN_EXEC_REALPATH)) {          if (ccs_check_flags(NULL, CCS_AUTOLEARN_EXEC_REALPATH)) {
1756                  struct file *file = ee->bprm->file;                  struct file *file = ee->bprm->file;
1757                  realpath = ccs_realpath_from_dentry(file->f_dentry,  #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20)
1758                                                      file->f_vfsmnt);                  struct path path = { file->f_vfsmnt, file->f_dentry };
1759                    realpath = ccs_realpath_from_path(&path);
1760    #else
1761                    realpath = ccs_realpath_from_path(&file->f_path);
1762    #endif
1763                  if (realpath)                  if (realpath)
1764                          len += strlen(realpath) + 17;                          len += strlen(realpath) + 17;
1765          }          }

Legend:
Removed from v.2908  
changed lines
  Added in v.2911

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