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

Subversion リポジトリの参照

Diff of /trunk/1.6.x/ccs-patch/fs/tomoyo_signal.c

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

revision 1694 by kumaneko, Tue Oct 7 02:21:32 2008 UTC revision 1695 by kumaneko, Sat Oct 11 08:46:59 2008 UTC
# Line 5  Line 5 
5   *   *
6   * Copyright (C) 2005-2008  NTT DATA CORPORATION   * Copyright (C) 2005-2008  NTT DATA CORPORATION
7   *   *
8   * Version: 1.6.5-pre   2008/10/07   * Version: 1.6.5-pre   2008/10/11
9   *   *
10   * This file is applicable to both 2.4.30 and 2.6.11 and later.   * This file is applicable to both 2.4.30 and 2.6.11 and later.
11   * See README.ccs for ChangeLog.   * See README.ccs for ChangeLog.
# Line 55  static int update_signal_acl(const int s Line 55  static int update_signal_acl(const int s
55                               const struct condition_list *condition,                               const struct condition_list *condition,
56                               const bool is_delete)                               const bool is_delete)
57  {  {
58            static DEFINE_MUTEX(lock);
59          struct acl_info *ptr;          struct acl_info *ptr;
60          struct signal_acl_record *acl;          struct signal_acl_record *acl;
61          const struct path_info *saved_dest_pattern;          const struct path_info *saved_dest_pattern;
# Line 67  static int update_signal_acl(const int s Line 68  static int update_signal_acl(const int s
68          saved_dest_pattern = ccs_save_name(dest_pattern);          saved_dest_pattern = ccs_save_name(dest_pattern);
69          if (!saved_dest_pattern)          if (!saved_dest_pattern)
70                  return -ENOMEM;                  return -ENOMEM;
71          mutex_lock(&domain_acl_lock);          mutex_lock(&lock);
72          if (is_delete)          if (is_delete)
73                  goto delete;                  goto delete;
74          list1_for_each_entry(ptr, &domain->acl_info_list, list) {          list1_for_each_entry(ptr, &domain->acl_info_list, list) {
# Line 105  static int update_signal_acl(const int s Line 106  static int update_signal_acl(const int s
106                  break;                  break;
107          }          }
108   out:   out:
109          mutex_unlock(&domain_acl_lock);          mutex_unlock(&lock);
110          return error;          return error;
111  }  }
112    

Legend:
Removed from v.1694  
changed lines
  Added in v.1695

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