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

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 329 by kumaneko, Wed Aug 8 11:15:09 2007 UTC revision 332 by kumaneko, Thu Aug 9 12:15:49 2007 UTC
# Line 1127  void CCS_LoadPolicy(const char *filename Line 1127  void CCS_LoadPolicy(const char *filename
1127                  path_release(&nd);                  path_release(&nd);
1128          }          }
1129  #ifdef CONFIG_SAKURA  #ifdef CONFIG_SAKURA
1130          printk("SAKURA: 1.5.0-pre   2007/08/08\n");          printk("SAKURA: 1.5.0-pre   2007/08/09\n");
1131  #endif  #endif
1132  #ifdef CONFIG_TOMOYO  #ifdef CONFIG_TOMOYO
1133          printk("TOMOYO: 1.5.0-pre   2007/08/08\n");          printk("TOMOYO: 1.5.0-pre   2007/08/09\n");
1134  #endif  #endif
1135          if (!profile_loaded) {          if (!profile_loaded) {
1136                  char *argv[2], *envp[3];                  char *argv[2], *envp[3];
# Line 1387  static int ReadUpdatesCounter(struct io_ Line 1387  static int ReadUpdatesCounter(struct io_
1387          return 0;          return 0;
1388  }  }
1389    
1390    static int ReadVersion(struct io_buffer *head)
1391    {
1392            if (!head->read_eof) {
1393                    if (io_printf(head, "1\n") == 0) head->read_eof = 1;
1394            }
1395            return 0;
1396    }
1397    
1398  static int ReadMemoryCounter(struct io_buffer *head)  static int ReadMemoryCounter(struct io_buffer *head)
1399  {  {
1400          if (!head->read_eof) {          if (!head->read_eof) {
# Line 1438  int CCS_OpenControl(const int type, stru Line 1446  int CCS_OpenControl(const int type, stru
1446                  head->read = ReadSystemPolicy;                  head->read = ReadSystemPolicy;
1447                  break;                  break;
1448  #endif  #endif
1449            case CCS_VERSION:
1450                    head->read = ReadVersion;
1451                    head->readbuf_size = 128;
1452                    break;
1453          case CCS_INFO_MEMINFO:          case CCS_INFO_MEMINFO:
1454                  head->read = ReadMemoryCounter;                  head->read = ReadMemoryCounter;
1455                  head->readbuf_size = 128;                  head->readbuf_size = 128;

Legend:
Removed from v.329  
changed lines
  Added in v.332

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