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

Subversion リポジトリの参照

Diff of /trunk/1.7.x/ccs-patch/security/ccsecurity/util.c

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

revision 1278 by kumaneko, Tue Jun 10 00:59:43 2008 UTC revision 1279 by kumaneko, Tue Jun 10 05:00:29 2008 UTC
# Line 2454  int ccs_check_supervisor(struct linux_bi Line 2454  int ccs_check_supervisor(struct linux_bi
2454          static unsigned int serial;          static unsigned int serial;
2455          struct query_entry *query_entry = NULL;          struct query_entry *query_entry = NULL;
2456          char *header;          char *header;
2457          if (!ccs_check_flags(CCS_ALLOW_ENFORCE_GRACE)          if (!atomic_read(&queryd_watcher)) {
             || !atomic_read(&queryd_watcher)) {  
2458                  int i;                  int i;
2459                  if (current->tomoyo_flags & CCS_DONT_SLEEP_ON_ENFORCE_ERROR)                  if (current->tomoyo_flags & CCS_DONT_SLEEP_ON_ENFORCE_ERROR)
2460                          return -EPERM;                          return -EPERM;
# Line 2650  static int write_answer(struct ccs_io_bu Line 2649  static int write_answer(struct ccs_io_bu
2649          struct list_head *tmp;          struct list_head *tmp;
2650          unsigned int serial;          unsigned int serial;
2651          unsigned int answer;          unsigned int answer;
2652            if (!ccs_check_flags(CCS_ALLOW_ENFORCE_GRACE))
2653                    return -EPERM;
2654          /***** CRITICAL SECTION START *****/          /***** CRITICAL SECTION START *****/
2655          spin_lock(&query_lock);          spin_lock(&query_lock);
2656          list_for_each(tmp, &query_list) {          list_for_each(tmp, &query_list) {

Legend:
Removed from v.1278  
changed lines
  Added in v.1279

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