~ubuntu-branches/ubuntu/hardy/mysql-dfsg-5.0/hardy-proposed

« back to all changes in this revision

Viewing changes to scripts/mysql_fix_privilege_tables_sql.c

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-23 11:21:11 UTC
  • mfrom: (1.1.16) (38.1.4 hardy-security)
  • Revision ID: package-import@ubuntu.com-20120223112111-rn9ruzg86juli2ec
Tags: 5.0.95-0ubuntu1
* SECURITY UPDATE: Update to 5.0.95 to fix multiple security issues
  (LP: #937869)
  - http://www.oracle.com/technetwork/topics/security/cpujan2012-366304.html
  - CVE-2012-0075
  - CVE-2012-0087
  - CVE-2012-0101
  - CVE-2012-0102
  - CVE-2012-0114
  - CVE-2012-0484
  - CVE-2012-0490
* Dropped patches unnecessary with 5.0.95:
  - debian/patches/91_SECURITY_CVE-2007-5925.dpatch
  - debian/patches/95_SECURITY_CVE-2008-3963.dpatch
  - debian/patches/96_SECURITY_CVE-2008-4098.dpatch
  - debian/patches/97_CVE-2008-4456.dpatch
  - debian/patches/97_CVE-2009-2446.dpatch
  - debian/patches/97_CVE-2009-4019.dpatch
  - debian/patches/97_CVE-2009-4030.dpatch
  - debian/patches/98_CVE-2009-4484.dpatch
  - debian/patches/99_ssl_test_certs.dpatch
  - debian/patches/100_CVE-2010-1850.dpatch
  - debian/patches/101_CVE-2010-1849.dpatch
  - debian/patches/102_CVE-2010-1848.dpatch
  - debian/patches/103_CVE-2010-1626.dpatch
  - debian/patches/98_CVE-2010-3677.dpatch
  - debian/patches/98_CVE-2010-3680.dpatch
  - debian/patches/98_CVE-2010-3681.dpatch
  - debian/patches/98_CVE-2010-3682.dpatch
  - debian/patches/98_CVE-2010-3833.dpatch
  - debian/patches/98_CVE-2010-3834.dpatch
  - debian/patches/98_CVE-2010-3835.dpatch
  - debian/patches/98_CVE-2010-3836.dpatch
  - debian/patches/98_CVE-2010-3837.dpatch
  - debian/patches/98_CVE-2010-3838.dpatch
  - debian/patches/98_CVE-2010-3840.dpatch
  - debian/patches/45_warn-CLI-passwords.dpatch
  - debian/patches/50_fix_mysqldump.dpatch
  - debian/patches/51_incorrect-order.dpatch
  - debian/patches/52_ndb-gcc-4.2.dpatch
  - debian/patches/53_integer-gcc-4.2.dpatch
  - debian/patches/54_ssl-client-support.dpatch
  - debian/patches/55_testsuite-2008.dpatch
  - debian/patches/58-disable-ndb-backup-print.dpatch
  - debian/patches/59-fix-mysql-replication-logs.dpatch
  - debian/patches/86_PATH_MAX.dpatch
  - debian/patches/90_upstreamdebiandir.dpatch
  - debian/patches/92_fix_order_by32202.dpatch
  - debian/patches/93_fix_user_setup_on_localhost.dpatch
  - debian/patches/94_fix_mysqldump_with_old_versions.dpatch
  - debian/patches/56-mysqlhotcopy-invalid-dbtable.dpatch
  - debian/patches/57-fix-mysqlslowdump-config.dpatch
* debian/mysql-client-5.0.docs, debian/mysql-server-5.0.docs: removed
  EXCEPTIONS-CLIENT file
* debian/libmysqlclient15-dev.docs, debian/libmysqlclient15off.docs:
  removed, no longer necessary.
* debian/patches/25_mysys__default.c.dpatch: updated for 5.0.95.
* debian/mysql-server-5.0.files: change ndb_mgmd and ndbd manpage
  locations. Removed mysqlmanagerc.1 and mysqlmanager-pwgen.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
const char* mysql_fix_privilege_tables={
 
2
"-- Copyright (c) 2007, 2008 MySQL AB, 2009 Sun Microsystems, Inc.\n "
 
3
"-- Use is subject to license terms.\n "
 
4
"-- \n "
 
5
"-- This program is free software; you can redistribute it and/or modify\n "
 
6
"-- it under the terms of the GNU General Public License as published by\n "
 
7
"-- the Free Software Foundation; version 2 of the License.\n "
 
8
"-- \n "
 
9
"-- This program is distributed in the hope that it will be useful,\n "
 
10
"-- but WITHOUT ANY WARRANTY; without even the implied warranty of\n "
 
11
"-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n "
 
12
"-- GNU General Public License for more details.\n "
 
13
"-- \n "
 
14
"-- You should have received a copy of the GNU General Public License\n "
 
15
"-- along with this program; if not, write to the Free Software\n "
 
16
"-- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA\n "
 
17
"\n "
2
18
"--\n "
3
19
"-- The system tables of MySQL Server\n "
4
20
"--\n "
5
21
"\n "
 
22
"set sql_mode='';\n "
6
23
"set storage_engine=myisam;\n "
7
24
"\n "
8
25
"CREATE TABLE IF NOT EXISTS db (   Host char(60) binary DEFAULT '' NOT NULL, Db char(64) binary DEFAULT '' NOT NULL, User char(16) binary DEFAULT '' NOT NULL, Select_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL, Insert_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL, Update_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL, Delete_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL, Create_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT"
71
88
"H_ESCAPES', 'STRICT_TRANS_TABLES', 'STRICT_ALL_TABLES', 'NO_ZERO_IN_DATE', 'NO_ZERO_DATE', 'INVALID_DATES', 'ERROR_FOR_DIVISION_BY_ZERO', 'TRADITIONAL', 'NO_AUTO_CREATE_USER', 'HIGH_NOT_PRECEDENCE' ) DEFAULT '' NOT NULL, comment char(64) collate utf8_bin DEFAULT '' NOT NULL, PRIMARY KEY (db,name,type) ) engine=MyISAM character set utf8 comment='Stored Procedures';\n "
72
89
"\n "
73
90
"\n "
74
 
"CREATE TABLE IF NOT EXISTS procs_priv ( Host char(60) binary DEFAULT '' NOT NULL, Db char(64) binary DEFAULT '' NOT NULL, User char(16) binary DEFAULT '' NOT NULL, Routine_name char(64) binary DEFAULT '' NOT NULL, Routine_type enum('FUNCTION','PROCEDURE') NOT NULL, Grantor char(77) DEFAULT '' NOT NULL, Proc_priv set('Execute','Alter Routine','Grant') COLLATE utf8_general_ci DEFAULT '' NOT NULL, Timestamp timestamp(14), PRIMARY KEY (Host,Db,User,Routine_name,Routine_type), KEY Grantor (Grantor) ) engine=MyI"
75
 
"SAM CHARACTER SET utf8 COLLATE utf8_bin   comment='Procedure privileges';\n "
 
91
"CREATE TABLE IF NOT EXISTS procs_priv ( Host char(60) binary DEFAULT '' NOT NULL, Db char(64) binary DEFAULT '' NOT NULL, User char(16) binary DEFAULT '' NOT NULL, Routine_name char(64) COLLATE utf8_general_ci DEFAULT '' NOT NULL, Routine_type enum('FUNCTION','PROCEDURE') NOT NULL, Grantor char(77) DEFAULT '' NOT NULL, Proc_priv set('Execute','Alter Routine','Grant') COLLATE utf8_general_ci DEFAULT '' NOT NULL, Timestamp timestamp(14), PRIMARY KEY (Host,Db,User,Routine_name,Routine_type), KEY Grantor (Gran"
 
92
"tor) ) engine=MyISAM CHARACTER SET utf8 COLLATE utf8_bin   comment='Procedure privileges';\n "
 
93
"\n "
 
94
"# Copyright (c) 2003, 2007 MySQL AB, 2009 Sun Microsystems, Inc.\n "
 
95
"# Use is subject to license terms.\n "
 
96
"# \n "
 
97
"# This program is free software; you can redistribute it and/or modify\n "
 
98
"# it under the terms of the GNU General Public License as published by\n "
 
99
"# the Free Software Foundation; version 2 of the License.\n "
 
100
"# \n "
 
101
"# This program is distributed in the hope that it will be useful,\n "
 
102
"# but WITHOUT ANY WARRANTY; without even the implied warranty of\n "
 
103
"# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n "
 
104
"# GNU General Public License for more details.\n "
 
105
"# \n "
 
106
"# You should have received a copy of the GNU General Public License\n "
 
107
"# along with this program; if not, write to the Free Software\n "
 
108
"# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA\n "
76
109
"\n "
77
110
"# This part converts any old privilege tables to privilege tables suitable\n "
78
111
"# for current version of MySQL\n "
399
432
"  MODIFY Proc_priv set('Execute','Alter Routine','Grant')\n "
400
433
"    COLLATE utf8_general_ci DEFAULT '' NOT NULL;\n "
401
434
"\n "
 
435
"ALTER IGNORE TABLE procs_priv\n "
 
436
"  MODIFY Routine_name char(64)\n "
 
437
"    COLLATE utf8_general_ci DEFAULT '' NOT NULL;\n "
 
438
"\n "
402
439
"ALTER TABLE procs_priv\n "
403
440
"  ADD Routine_type enum('FUNCTION','PROCEDURE')\n "
404
441
"    COLLATE utf8_general_ci NOT NULL AFTER Routine_name;\n "